ListModelsOutput.fromJson constructor

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

Implementation

factory ListModelsOutput.fromJson(Map<String, dynamic> json) {
  return ListModelsOutput(
    models: (json['Models'] as List)
        .whereNotNull()
        .map((e) => ModelSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}