Untitled
unknown
dart
2 years ago
4.1 kB
3
Indexable
class CreateMeetingDTO { String? id; String? title; String? description; String? startDate; String? endDate; bool? isOnline; String? meetingURL; bool? isInternal; bool? isApprovedByM; bool? isApprovedByA; String? meetPlace; String? deletedNotes; bool? isWithTime; String? entityId; List<Documents>? documents; List<MeetingAttendeesPerson>? meetingAttendeesPerson; CreateMeetingDTO( {this.id, this.title, this.description, this.startDate, this.endDate, this.isOnline, this.meetingURL, this.isInternal, this.isApprovedByM, this.isApprovedByA, this.meetPlace, this.deletedNotes, this.isWithTime, this.entityId, this.documents, this.meetingAttendeesPerson}); CreateMeetingDTO.fromJson(Map<String, dynamic> json) { id = json['Id']; title = json['Title']; description = json['Description']; startDate = json['StartDate']; endDate = json['EndDate']; isOnline = json['IsOnline']; meetingURL = json['MeetingURL']; isInternal = json['IsInternal']; isApprovedByM = json['IsApprovedByM']; isApprovedByA = json['IsApprovedByA']; meetPlace = json['Meet_Place']; deletedNotes = json['Deleted_Notes']; isWithTime = json['IsWithTime']; entityId = json['EntityId']; if (json['Documents'] != null) { documents = <Documents>[]; json['Documents'].forEach((v) { documents!.add(new Documents.fromJson(v)); }); } if (json['MeetingAttendeesPerson'] != null) { meetingAttendeesPerson = <MeetingAttendeesPerson>[]; json['MeetingAttendeesPerson'].forEach((v) { meetingAttendeesPerson!.add(new MeetingAttendeesPerson.fromJson(v)); }); } } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['Id'] = this.id; data['Title'] = this.title; data['Description'] = this.description; data['StartDate'] = this.startDate; data['EndDate'] = this.endDate; data['IsOnline'] = this.isOnline; data['MeetingURL'] = this.meetingURL; data['IsInternal'] = this.isInternal; data['IsApprovedByM'] = this.isApprovedByM; data['IsApprovedByA'] = this.isApprovedByA; data['Meet_Place'] = this.meetPlace; data['Deleted_Notes'] = this.deletedNotes; data['IsWithTime'] = this.isWithTime; data['EntityId'] = this.entityId; if (this.documents != null) { data['Documents'] = this.documents!.map((v) => v.toJson()).toList(); } if (this.meetingAttendeesPerson != null) { data['MeetingAttendeesPerson'] = this.meetingAttendeesPerson!.map((v) => v.toJson()).toList(); } return data; } } class Documents { String? title; String? meetingId; String? description; String? note; String? document; Documents( {this.title, this.meetingId, this.description, this.note, this.document}); Documents.fromJson(Map<String, dynamic> json) { title = json['title']; meetingId = json['meetingId']; description = json['description']; note = json['note']; document = json['document']; } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['title'] = this.title; data['meetingId'] = this.meetingId; data['description'] = this.description; data['note'] = this.note; data['document'] = this.document; return data; } } class MeetingAttendeesPerson { String? id; String? attendeeTitle; String? meetingId; String? userId; MeetingAttendeesPerson( {this.id, this.attendeeTitle, this.meetingId, this.userId}); MeetingAttendeesPerson.fromJson(Map<String, dynamic> json) { id = json['id']; attendeeTitle = json['attendee_Title']; meetingId = json['meetingId']; userId = json['userId']; } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['id'] = this.id; data['attendee_Title'] = this.attendeeTitle; data['meetingId'] = this.meetingId; data['userId'] = this.userId; return data; } }
Editor is loading...