MedicalTranscriptionJob.fromJson constructor
MedicalTranscriptionJob.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MedicalTranscriptionJob.fromJson(Map<String, dynamic> json) {
return MedicalTranscriptionJob(
completionTime: timeStampFromJson(json['CompletionTime']),
creationTime: timeStampFromJson(json['CreationTime']),
failureReason: json['FailureReason'] as String?,
languageCode: (json['LanguageCode'] as String?)?.toLanguageCode(),
media: json['Media'] != null
? Media.fromJson(json['Media'] as Map<String, dynamic>)
: null,
mediaFormat: (json['MediaFormat'] as String?)?.toMediaFormat(),
mediaSampleRateHertz: json['MediaSampleRateHertz'] as int?,
medicalTranscriptionJobName:
json['MedicalTranscriptionJobName'] as String?,
settings: json['Settings'] != null
? MedicalTranscriptionSetting.fromJson(
json['Settings'] as Map<String, dynamic>)
: null,
specialty: (json['Specialty'] as String?)?.toSpecialty(),
startTime: timeStampFromJson(json['StartTime']),
transcript: json['Transcript'] != null
? MedicalTranscript.fromJson(
json['Transcript'] as Map<String, dynamic>)
: null,
transcriptionJobStatus: (json['TranscriptionJobStatus'] as String?)
?.toTranscriptionJobStatus(),
type: (json['Type'] as String?)?.toType(),
);
}