ResourceConfig.fromJson constructor

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

Implementation

factory ResourceConfig.fromJson(Map<String, dynamic> json) {
  return ResourceConfig(
    instanceCount: json['InstanceCount'] as int,
    instanceType: (json['InstanceType'] as String).toTrainingInstanceType(),
    volumeSizeInGB: json['VolumeSizeInGB'] as int,
    volumeKmsKeyId: json['VolumeKmsKeyId'] as String?,
  );
}