TapeInfo.fromJson constructor

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

Implementation

factory TapeInfo.fromJson(Map<String, dynamic> json) {
  return TapeInfo(
    gatewayARN: json['GatewayARN'] as String?,
    poolEntryDate: timeStampFromJson(json['PoolEntryDate']),
    poolId: json['PoolId'] as String?,
    retentionStartDate: timeStampFromJson(json['RetentionStartDate']),
    tapeARN: json['TapeARN'] as String?,
    tapeBarcode: json['TapeBarcode'] as String?,
    tapeSizeInBytes: json['TapeSizeInBytes'] as int?,
    tapeStatus: json['TapeStatus'] as String?,
  );
}