toJson method
Converts a ObjectFieldSelector instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempApiVersion = apiVersion;
final tempFieldPath = fieldPath;
if (tempApiVersion != null) {
jsonData['apiVersion'] = tempApiVersion;
}
jsonData['fieldPath'] = tempFieldPath;
return jsonData;
}