PoolInfo.fromJson constructor

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

Implementation

factory PoolInfo.fromJson(Map<String, dynamic> json) {
  return PoolInfo(
    poolARN: json['PoolARN'] as String?,
    poolName: json['PoolName'] as String?,
    poolStatus: (json['PoolStatus'] as String?)?.toPoolStatus(),
    retentionLockTimeInDays: json['RetentionLockTimeInDays'] as int?,
    retentionLockType:
        (json['RetentionLockType'] as String?)?.toRetentionLockType(),
    storageClass: (json['StorageClass'] as String?)?.toTapeStorageClass(),
  );
}