Map<String, dynamic> toMap() { return { 'id': id, 'name': name, 'slug': slug, 'State': states.map((state) => state.toMap()).toList(), }; }