ListImageRecipesResponse.fromJson constructor

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

Implementation

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