toJson method
Implementation
Map<String, dynamic> toJson() {
final mountPoint = this.mountPoint;
final numberOfDisks = this.numberOfDisks;
final size = this.size;
final encrypted = this.encrypted;
final iops = this.iops;
final raidLevel = this.raidLevel;
final volumeType = this.volumeType;
return {
'MountPoint': mountPoint,
'NumberOfDisks': numberOfDisks,
'Size': size,
if (encrypted != null) 'Encrypted': encrypted,
if (iops != null) 'Iops': iops,
if (raidLevel != null) 'RaidLevel': raidLevel,
if (volumeType != null) 'VolumeType': volumeType,
};
}