toJson method
Converts a IngressClassParametersReference instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempApiGroup = apiGroup;
final tempKind = kind;
final tempName = name;
final tempNamespace = namespace;
final tempScope = scope;
if (tempApiGroup != null) {
jsonData['apiGroup'] = tempApiGroup;
}
jsonData['kind'] = tempKind;
jsonData['name'] = tempName;
if (tempNamespace != null) {
jsonData['namespace'] = tempNamespace;
}
if (tempScope != null) {
jsonData['scope'] = tempScope;
}
return jsonData;
}