WorldExportJobSummary.fromJson constructor

WorldExportJobSummary.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WorldExportJobSummary.fromJson(Map<String, dynamic> json) {
  return WorldExportJobSummary(
    arn: json['arn'] as String?,
    createdAt: timeStampFromJson(json['createdAt']),
    status: (json['status'] as String?)?.toWorldExportJobStatus(),
    worlds: (json['worlds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}