Map<String, dynamic> toMap() { return <String, dynamic>{ 'id': ?id, 'name': ?name, 'parent': ?parent, 'scopes': ?scopes, 'title': ?title, }; }