DescribeHapgResponse.fromJson constructor

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

Implementation

factory DescribeHapgResponse.fromJson(Map<String, dynamic> json) {
  return DescribeHapgResponse(
    hapgArn: json['HapgArn'] as String?,
    hapgSerial: json['HapgSerial'] as String?,
    hsmsLastActionFailed: (json['HsmsLastActionFailed'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    hsmsPendingDeletion: (json['HsmsPendingDeletion'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    hsmsPendingRegistration: (json['HsmsPendingRegistration'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    label: json['Label'] as String?,
    lastModifiedTimestamp: json['LastModifiedTimestamp'] as String?,
    partitionSerialList: (json['PartitionSerialList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    state: (json['State'] as String?)?.toCloudHsmObjectState(),
  );
}