ParallelDataProperties.fromJson constructor
ParallelDataProperties.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ParallelDataProperties.fromJson(Map<String, dynamic> json) {
return ParallelDataProperties(
arn: json['Arn'] as String?,
createdAt: timeStampFromJson(json['CreatedAt']),
description: json['Description'] as String?,
encryptionKey: json['EncryptionKey'] != null
? EncryptionKey.fromJson(
json['EncryptionKey'] as Map<String, dynamic>)
: null,
failedRecordCount: json['FailedRecordCount'] as int?,
importedDataSize: json['ImportedDataSize'] as int?,
importedRecordCount: json['ImportedRecordCount'] as int?,
lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']),
latestUpdateAttemptAt: timeStampFromJson(json['LatestUpdateAttemptAt']),
latestUpdateAttemptStatus: (json['LatestUpdateAttemptStatus'] as String?)
?.toParallelDataStatus(),
message: json['Message'] as String?,
name: json['Name'] as String?,
parallelDataConfig: json['ParallelDataConfig'] != null
? ParallelDataConfig.fromJson(
json['ParallelDataConfig'] as Map<String, dynamic>)
: null,
skippedRecordCount: json['SkippedRecordCount'] as int?,
sourceLanguageCode: json['SourceLanguageCode'] as String?,
status: (json['Status'] as String?)?.toParallelDataStatus(),
targetLanguageCodes: (json['TargetLanguageCodes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}