toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final instanceCount = this.instanceCount;
  final instanceType = this.instanceType;
  final volumeSizeInGB = this.volumeSizeInGB;
  final volumeKmsKeyId = this.volumeKmsKeyId;
  return {
    'InstanceCount': instanceCount,
    'InstanceType': instanceType.toValue(),
    'VolumeSizeInGB': volumeSizeInGB,
    if (volumeKmsKeyId != null) 'VolumeKmsKeyId': volumeKmsKeyId,
  };
}