InstanceGroupDetail.fromJson constructor
InstanceGroupDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InstanceGroupDetail.fromJson(Map<String, dynamic> json) {
return InstanceGroupDetail(
creationDateTime:
nonNullableTimeStampFromJson(json['CreationDateTime'] as Object),
instanceRequestCount: json['InstanceRequestCount'] as int,
instanceRole: (json['InstanceRole'] as String).toInstanceRoleType(),
instanceRunningCount: json['InstanceRunningCount'] as int,
instanceType: json['InstanceType'] as String,
market: (json['Market'] as String).toMarketType(),
state: (json['State'] as String).toInstanceGroupState(),
bidPrice: json['BidPrice'] as String?,
endDateTime: timeStampFromJson(json['EndDateTime']),
instanceGroupId: json['InstanceGroupId'] as String?,
lastStateChangeReason: json['LastStateChangeReason'] as String?,
name: json['Name'] as String?,
readyDateTime: timeStampFromJson(json['ReadyDateTime']),
startDateTime: timeStampFromJson(json['StartDateTime']),
);
}