DescribeAcceleratorsResponse.fromJson constructor

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

Implementation

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