Map<String, Object?> toJson() { var permissions = this.permissions; final json = <String, Object?>{}; if (permissions != null) { json[r'permissions'] = permissions; } return json; }