InstanceBlockDeviceMapping.fromJson constructor

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

Implementation

factory InstanceBlockDeviceMapping.fromJson(Map<String, dynamic> json) {
  return InstanceBlockDeviceMapping(
    deviceName: json['deviceName'] as String?,
    ebs: json['ebs'] != null
        ? EbsInstanceBlockDeviceSpecification.fromJson(
            json['ebs'] as Map<String, dynamic>)
        : null,
    noDevice: json['noDevice'] as String?,
    virtualName: json['virtualName'] as String?,
  );
}