ListContainerRecipesResponse.fromJson constructor

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

Implementation

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