EbsBlockDevice.fromJson constructor

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

Implementation

factory EbsBlockDevice.fromJson(Map<String, dynamic> json) {
  return EbsBlockDevice(
    deleteOnTermination: json['DeleteOnTermination'] as bool?,
    iops: json['Iops'] as int?,
    snapshotId: json['SnapshotId'] as String?,
    volumeSize: json['VolumeSize'] as int?,
    volumeType: (json['VolumeType'] as String?)?.toVolumeType(),
  );
}