InstanceDefinition.fromJson constructor

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

Implementation

factory InstanceDefinition.fromJson(Map<String, dynamic> json) {
  return InstanceDefinition(
    instanceType:
        (json['InstanceType'] as String).toGameServerGroupInstanceType(),
    weightedCapacity: json['WeightedCapacity'] as String?,
  );
}