ListWorldTemplatesResponse.fromJson constructor
Implementation
factory ListWorldTemplatesResponse.fromJson(Map<String, dynamic> json) {
return ListWorldTemplatesResponse(
nextToken: json['nextToken'] as String?,
templateSummaries: (json['templateSummaries'] as List?)
?.whereNotNull()
.map((e) => TemplateSummary.fromJson(e as Map<String, dynamic>))
.toList(),
);
}