BlockDeviceMapping.fromJson constructor

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

Implementation

factory BlockDeviceMapping.fromJson(Map<String, dynamic> json) {
  return BlockDeviceMapping(
    deviceName: json['DeviceName'] as String?,
    ebs: json['Ebs'] != null
        ? EbsBlockDevice.fromJson(json['Ebs'] as Map<String, dynamic>)
        : null,
    noDevice: json['NoDevice'] as String?,
    virtualName: json['VirtualName'] as String?,
  );
}