toJson method

Map<String, Object> toJson()

Converts a PhotonPersistentDiskVolumeSource instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempFsType = fsType;
  final tempPdID = pdID;

  if (tempFsType != null) {
    jsonData['fsType'] = tempFsType;
  }

  jsonData['pdID'] = tempPdID;

  return jsonData;
}