GetModelsResult.fromJson constructor

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

Implementation

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