toJson method
Converts a AWSElasticBlockStoreVolumeSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempFsType = fsType;
final tempPartition = partition;
final tempReadOnly = readOnly;
final tempVolumeID = volumeID;
if (tempFsType != null) {
jsonData['fsType'] = tempFsType;
}
if (tempPartition != null) {
jsonData['partition'] = tempPartition;
}
if (tempReadOnly != null) {
jsonData['readOnly'] = tempReadOnly;
}
jsonData['volumeID'] = tempVolumeID;
return jsonData;
}