toJson method
Converts a Preconditions instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempResourceVersion = resourceVersion;
final tempUid = uid;
if (tempResourceVersion != null) {
jsonData['resourceVersion'] = tempResourceVersion;
}
if (tempUid != null) {
jsonData['uid'] = tempUid;
}
return jsonData;
}