Hsm.fromJson constructor
Implementation
factory Hsm.fromJson(Map<String, dynamic> json) {
return Hsm(
hsmId: json['HsmId'] as String,
availabilityZone: json['AvailabilityZone'] as String?,
clusterId: json['ClusterId'] as String?,
eniId: json['EniId'] as String?,
eniIp: json['EniIp'] as String?,
state: (json['State'] as String?)?.toHsmState(),
stateMessage: json['StateMessage'] as String?,
subnetId: json['SubnetId'] as String?,
);
}