ProductionVariant.fromJson constructor

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

Implementation

factory ProductionVariant.fromJson(Map<String, dynamic> json) {
  return ProductionVariant(
    initialInstanceCount: json['InitialInstanceCount'] as int,
    instanceType:
        (json['InstanceType'] as String).toProductionVariantInstanceType(),
    modelName: json['ModelName'] as String,
    variantName: json['VariantName'] as String,
    acceleratorType: (json['AcceleratorType'] as String?)
        ?.toProductionVariantAcceleratorType(),
    initialVariantWeight: json['InitialVariantWeight'] as double?,
  );
}