toJson method
Converts a GroupVersionForDiscovery instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempGroupVersion = groupVersion;
final tempVersion = version;
jsonData['groupVersion'] = tempGroupVersion;
jsonData['version'] = tempVersion;
return jsonData;
}