toJson method
Converts a NamespaceSpec instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempFinalizers = finalizers;
if (tempFinalizers != null) {
jsonData['finalizers'] = tempFinalizers;
}
return jsonData;
}