1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class Favorito { final String chatId; final String mensajeId; const Favorito({ required this.chatId, required this.mensajeId, }); factory Favorito.fromMap(Map<String, dynamic> map) { return Favorito( chatId: map['chat_id'], mensajeId: map['mensaje_id'], ); } }