WorldGenerationJobSummary.fromJson constructor
WorldGenerationJobSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory WorldGenerationJobSummary.fromJson(Map<String, dynamic> json) {
return WorldGenerationJobSummary(
arn: json['arn'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
failedWorldCount: json['failedWorldCount'] as int?,
status: (json['status'] as String?)?.toWorldGenerationJobStatus(),
succeededWorldCount: json['succeededWorldCount'] as int?,
template: json['template'] as String?,
worldCount: json['worldCount'] != null
? WorldCount.fromJson(json['worldCount'] as Map<String, dynamic>)
: null,
);
}