Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (secrets != null) { json[r'secrets'] = secrets; } return json; }