toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  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;
  }
  if (this.invitation != null) {
    json[r'invitation'] = this.invitation;
  } else {
    json[r'invitation'] = null;
  }
  return json;
}