toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final deleteOnTermination = this.deleteOnTermination;
  final encrypted = this.encrypted;
  final iops = this.iops;
  final kmsKeyId = this.kmsKeyId;
  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 (kmsKeyId != null) 'kmsKeyId': kmsKeyId,
    if (snapshotId != null) 'snapshotId': snapshotId,
    if (volumeSize != null) 'volumeSize': volumeSize,
    if (volumeType != null) 'volumeType': volumeType.toValue(),
  };
}