Tape.fromJson constructor

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

Implementation

factory Tape.fromJson(Map<String, dynamic> json) {
  return Tape(
    kMSKey: json['KMSKey'] as String?,
    poolEntryDate: timeStampFromJson(json['PoolEntryDate']),
    poolId: json['PoolId'] as String?,
    progress: json['Progress'] as double?,
    retentionStartDate: timeStampFromJson(json['RetentionStartDate']),
    tapeARN: json['TapeARN'] as String?,
    tapeBarcode: json['TapeBarcode'] as String?,
    tapeCreatedDate: timeStampFromJson(json['TapeCreatedDate']),
    tapeSizeInBytes: json['TapeSizeInBytes'] as int?,
    tapeStatus: json['TapeStatus'] as String?,
    tapeUsedInBytes: json['TapeUsedInBytes'] as int?,
    vTLDevice: json['VTLDevice'] as String?,
    worm: json['Worm'] as bool?,
  );
}