// To parse this JSON data, do // // final allSessionNotesResponse = allSessionNotesResponseFromJson(jsonString); import 'dart:convert'; String allSessionNotesResponseToJson(List data) => json.encode(List.from(data.map((x) => x.toJson()))); List AllSessionNotesResponseFromJson(String str) { final jsonData = json.decode(str); return new List.from( jsonData.map((x) => AllSessionNotesResponse.fromJson(x))); } class AllSessionNotesResponse { List>? eventTopicNotesId; String? note; String? sessionName; String? eventTopics; String? userName; String? users; List? notes; List? createdOn; String? firstName; String? middleName; String? lastName; DateTime? notesCreatedOn; List? addedBy; AllSessionNotesResponse({ this.eventTopicNotesId, this.note, this.sessionName, this.eventTopics, this.userName, this.users, this.notes, this.createdOn, this.firstName, this.middleName, this.lastName, this.notesCreatedOn, this.addedBy, }); factory AllSessionNotesResponse.fromJson(Map json) => AllSessionNotesResponse( eventTopicNotesId: json["event_topic_notes_id"] == null ? [] : List>.from(json["event_topic_notes_id"]! .map((x) => List.from(x.map((x) => x)))), note: json["note"], sessionName: json["session_name"], eventTopics: json["event_topics"], userName: json["user_name"]!, users: json["users"], notes: json["notes"] == null ? [] : List.from(json["notes"]!.map((x) => x)), createdOn: json["created_on"] == null ? [] : List.from(json["created_on"]!.map((x) => x)), firstName: json["first_name"], middleName: json["middle_name"], lastName: json["last_name"], notesCreatedOn: json["notes_created_on"] == null ? null : DateTime.parse(json["notes_created_on"]), addedBy: json["added_by"] == null ? [] : List.from(json["added_by"]!.map((x) => x)), ); Map toJson() => { "event_topic_notes_id": eventTopicNotesId == null ? [] : List.from(eventTopicNotesId! .map((x) => List.from(x.map((x) => x)))), "note": note, "session_name": sessionName, "event_topics": eventTopics, "user_name": userName, "users": users, "notes": notes == null ? [] : List.from(notes!.map((x) => x)), "created_on": createdOn == null ? [] : List.from(createdOn!.map((x) => x)), "first_name": firstName, "middle_name": middleName, "last_name": lastName, "notes_created_on": notesCreatedOn?.toIso8601String(), "added_by": addedBy == null ? [] : List.from(addedBy!.map((x) => x)), }; }