DescribeHsmResponse.fromJson constructor

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

Implementation

factory DescribeHsmResponse.fromJson(Map<String, dynamic> json) {
  return DescribeHsmResponse(
    availabilityZone: json['AvailabilityZone'] as String?,
    eniId: json['EniId'] as String?,
    eniIp: json['EniIp'] as String?,
    hsmArn: json['HsmArn'] as String?,
    hsmType: json['HsmType'] as String?,
    iamRoleArn: json['IamRoleArn'] as String?,
    partitions: (json['Partitions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    serialNumber: json['SerialNumber'] as String?,
    serverCertLastUpdated: json['ServerCertLastUpdated'] as String?,
    serverCertUri: json['ServerCertUri'] as String?,
    softwareVersion: json['SoftwareVersion'] as String?,
    sshKeyLastUpdated: json['SshKeyLastUpdated'] as String?,
    sshPublicKey: json['SshPublicKey'] as String?,
    status: (json['Status'] as String?)?.toHsmStatus(),
    statusDetails: json['StatusDetails'] as String?,
    subnetId: json['SubnetId'] as String?,
    subscriptionEndDate: json['SubscriptionEndDate'] as String?,
    subscriptionStartDate: json['SubscriptionStartDate'] as String?,
    subscriptionType:
        (json['SubscriptionType'] as String?)?.toSubscriptionType(),
    vendorName: json['VendorName'] as String?,
    vpcId: json['VpcId'] as String?,
  );
}