toJson method
Implementation
Map<String, dynamic> toJson() {
final deleteOnTermination = this.deleteOnTermination;
final encrypted = this.encrypted;
final iops = this.iops;
final snapshotId = this.snapshotId;
final volumeSize = this.volumeSize;
final volumeType = this.volumeType;
return {
if (deleteOnTermination != null)
'DeleteOnTermination': deleteOnTermination,
if (encrypted != null) 'Encrypted': encrypted,
if (iops != null) 'Iops': iops,
if (snapshotId != null) 'SnapshotId': snapshotId,
if (volumeSize != null) 'VolumeSize': volumeSize,
if (volumeType != null) 'VolumeType': volumeType,
};
}