toJson method
Converts a FCVolumeSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempFsType = fsType;
final tempLun = lun;
final tempReadOnly = readOnly;
final tempTargetWWNs = targetWWNs;
final tempWwids = wwids;
if (tempFsType != null) {
jsonData['fsType'] = tempFsType;
}
if (tempLun != null) {
jsonData['lun'] = tempLun;
}
if (tempReadOnly != null) {
jsonData['readOnly'] = tempReadOnly;
}
if (tempTargetWWNs != null) {
jsonData['targetWWNs'] = tempTargetWWNs;
}
if (tempWwids != null) {
jsonData['wwids'] = tempWwids;
}
return jsonData;
}