DescribeModelVersionsResult.fromJson constructor

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

Implementation

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