ResourceSpec.fromJson constructor

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

Implementation

factory ResourceSpec.fromJson(Map<String, dynamic> json) {
  return ResourceSpec(
    instanceType: (json['InstanceType'] as String?)?.toAppInstanceType(),
    sageMakerImageArn: json['SageMakerImageArn'] as String?,
    sageMakerImageVersionArn: json['SageMakerImageVersionArn'] as String?,
  );
}