Map<String, dynamic> toJson() { return { 'name': name, 'isSubscribed': isSubscribed, 'code': code, }; }