toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'customer'] = this.customer;
    json[r'subject'] = this.subject;
    json[r'num_weeks'] = this.numWeeks;
    json[r'location'] = this.location;
  if (this.startTime != null) {
    json[r'start_time'] = this.startTime!.toUtc().toIso8601String();
  } else {
    json[r'start_time'] = null;
  }
  if (this.endTime != null) {
    json[r'end_time'] = this.endTime!.toUtc().toIso8601String();
  } else {
    json[r'end_time'] = null;
  }
    json[r'invitation_dates'] = this.invitationDates;
  return json;
}