DescribeWorldGenerationJobResponse.fromJson constructor
DescribeWorldGenerationJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeWorldGenerationJobResponse.fromJson(
Map<String, dynamic> json) {
return DescribeWorldGenerationJobResponse(
arn: json['arn'] as String?,
clientRequestToken: json['clientRequestToken'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
failureCode:
(json['failureCode'] as String?)?.toWorldGenerationJobErrorCode(),
failureReason: json['failureReason'] as String?,
finishedWorldsSummary: json['finishedWorldsSummary'] != null
? FinishedWorldsSummary.fromJson(
json['finishedWorldsSummary'] as Map<String, dynamic>)
: null,
status: (json['status'] as String?)?.toWorldGenerationJobStatus(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
template: json['template'] as String?,
worldCount: json['worldCount'] != null
? WorldCount.fromJson(json['worldCount'] as Map<String, dynamic>)
: null,
worldTags: (json['worldTags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}