GetExternalModelsResult.fromJson constructor

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

Implementation

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