TranscriptionJobSummary.fromJson constructor

TranscriptionJobSummary.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TranscriptionJobSummary.fromJson(Map<String, dynamic> json) {
  return TranscriptionJobSummary(
    completionTime: timeStampFromJson(json['CompletionTime']),
    contentRedaction: json['ContentRedaction'] != null
        ? ContentRedaction.fromJson(
            json['ContentRedaction'] as Map<String, dynamic>)
        : null,
    creationTime: timeStampFromJson(json['CreationTime']),
    failureReason: json['FailureReason'] as String?,
    identifiedLanguageScore: json['IdentifiedLanguageScore'] as double?,
    identifyLanguage: json['IdentifyLanguage'] as bool?,
    languageCode: (json['LanguageCode'] as String?)?.toLanguageCode(),
    modelSettings: json['ModelSettings'] != null
        ? ModelSettings.fromJson(
            json['ModelSettings'] as Map<String, dynamic>)
        : null,
    outputLocationType:
        (json['OutputLocationType'] as String?)?.toOutputLocationType(),
    startTime: timeStampFromJson(json['StartTime']),
    transcriptionJobName: json['TranscriptionJobName'] as String?,
    transcriptionJobStatus: (json['TranscriptionJobStatus'] as String?)
        ?.toTranscriptionJobStatus(),
  );
}