ListWorldGenerationJobsResponse.fromJson constructor

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

Implementation

factory ListWorldGenerationJobsResponse.fromJson(Map<String, dynamic> json) {
  return ListWorldGenerationJobsResponse(
    worldGenerationJobSummaries: (json['worldGenerationJobSummaries'] as List)
        .whereNotNull()
        .map((e) =>
            WorldGenerationJobSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}