toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'end_time'] = this.endTime.toUtc().toIso8601String();
  json[r'id'] = this.id;
  json[r'language'] = this.language;
  if (this.service != null) {
    json[r'service'] = this.service;
  } else {
    json[r'service'] = null;
  }
  json[r'speaker_id'] = this.speakerId;
  json[r'start_time'] = this.startTime.toUtc().toIso8601String();
  json[r'text'] = this.text;
  json[r'translated'] = this.translated;
  json[r'user'] = this.user;
  return json;
}