aboutsummaryrefslogtreecommitdiff
path: root/lib/models/favorito.dart
blob: 64422bef0dd27a3c6211368d26f5a50e9c7cd960 (plain)
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'],
    );
  }
}