TextTranslationJobProperties.fromJson constructor
TextTranslationJobProperties.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TextTranslationJobProperties.fromJson(Map<String, dynamic> json) {
return TextTranslationJobProperties(
dataAccessRoleArn: json['DataAccessRoleArn'] as String?,
endTime: timeStampFromJson(json['EndTime']),
inputDataConfig: json['InputDataConfig'] != null
? InputDataConfig.fromJson(
json['InputDataConfig'] as Map<String, dynamic>)
: null,
jobDetails: json['JobDetails'] != null
? JobDetails.fromJson(json['JobDetails'] as Map<String, dynamic>)
: null,
jobId: json['JobId'] as String?,
jobName: json['JobName'] as String?,
jobStatus: (json['JobStatus'] as String?)?.toJobStatus(),
message: json['Message'] as String?,
outputDataConfig: json['OutputDataConfig'] != null
? OutputDataConfig.fromJson(
json['OutputDataConfig'] as Map<String, dynamic>)
: null,
parallelDataNames: (json['ParallelDataNames'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
sourceLanguageCode: json['SourceLanguageCode'] as String?,
submittedTime: timeStampFromJson(json['SubmittedTime']),
targetLanguageCodes: (json['TargetLanguageCodes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
terminologyNames: (json['TerminologyNames'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}