ListSolutionsResponse.fromJson constructor

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

Implementation

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