ListThemesResponse.fromJson constructor

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

Implementation

factory ListThemesResponse.fromJson(Map<String, dynamic> json) {
  return ListThemesResponse(
    nextToken: json['NextToken'] as String?,
    requestId: json['RequestId'] as String?,
    themeSummaryList: (json['ThemeSummaryList'] as List?)
        ?.whereNotNull()
        .map((e) => ThemeSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}