DescribeWorldExportJobResponse.fromJson constructor
DescribeWorldExportJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeWorldExportJobResponse.fromJson(Map<String, dynamic> json) {
return DescribeWorldExportJobResponse(
arn: json['arn'] as String?,
clientRequestToken: json['clientRequestToken'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
failureCode:
(json['failureCode'] as String?)?.toWorldExportJobErrorCode(),
failureReason: json['failureReason'] as String?,
iamRole: json['iamRole'] as String?,
outputLocation: json['outputLocation'] != null
? OutputLocation.fromJson(
json['outputLocation'] as Map<String, dynamic>)
: null,
status: (json['status'] as String?)?.toWorldExportJobStatus(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
worlds: (json['worlds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}