class UserPermission { final String id; UserPermission({required this.id}); // Deserialize from JSON factory UserPermission.fromJson(Map json) { return UserPermission( id: json['id'], // Only the 'id' field is needed ); } // Serialize to JSON Map toJson() { return { 'id': id, // Only include 'id' when converting to JSON }; } }