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