toJson method
Converts a AzureDiskVolumeSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempCachingMode = cachingMode;
final tempDiskName = diskName;
final tempDiskURI = diskURI;
final tempFsType = fsType;
final tempKind = kind;
final tempReadOnly = readOnly;
if (tempCachingMode != null) {
jsonData['cachingMode'] = tempCachingMode;
}
jsonData['diskName'] = tempDiskName;
jsonData['diskURI'] = tempDiskURI;
if (tempFsType != null) {
jsonData['fsType'] = tempFsType;
}
if (tempKind != null) {
jsonData['kind'] = tempKind;
}
if (tempReadOnly != null) {
jsonData['readOnly'] = tempReadOnly;
}
return jsonData;
}