CachediSCSIVolume.fromJson constructor

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

Implementation

factory CachediSCSIVolume.fromJson(Map<String, dynamic> json) {
  return CachediSCSIVolume(
    createdDate: timeStampFromJson(json['CreatedDate']),
    kMSKey: json['KMSKey'] as String?,
    sourceSnapshotId: json['SourceSnapshotId'] as String?,
    targetName: json['TargetName'] as String?,
    volumeARN: json['VolumeARN'] as String?,
    volumeAttachmentStatus: json['VolumeAttachmentStatus'] as String?,
    volumeId: json['VolumeId'] as String?,
    volumeProgress: json['VolumeProgress'] as double?,
    volumeSizeInBytes: json['VolumeSizeInBytes'] as int?,
    volumeStatus: json['VolumeStatus'] as String?,
    volumeType: json['VolumeType'] as String?,
    volumeUsedInBytes: json['VolumeUsedInBytes'] as int?,
    volumeiSCSIAttributes: json['VolumeiSCSIAttributes'] != null
        ? VolumeiSCSIAttributes.fromJson(
            json['VolumeiSCSIAttributes'] as Map<String, dynamic>)
        : null,
  );
}