DescribeMLModelsOutput.fromJson constructor

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

Implementation

factory DescribeMLModelsOutput.fromJson(Map<String, dynamic> json) {
  return DescribeMLModelsOutput(
    nextToken: json['NextToken'] as String?,
    results: (json['Results'] as List?)
        ?.whereNotNull()
        .map((e) => MLModel.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}