fixed msg sending and added error handler

This commit is contained in:
Kima
2023-12-23 00:05:12 +01:00
parent fdc6209656
commit f46610314d
5 changed files with 107 additions and 11 deletions

View File

@@ -156,8 +156,9 @@ class SendRecipient {
});
factory SendRecipient.fromJson(Map json, SendRecipientType type) {
print(json);
return SendRecipient(
id: int.parse(json['oktatasiAzonosito'] ?? '0'),
id: int.parse(json['kretaAzonosito'] ?? '0'),
kretaId: json['kretaAzonosito'],
name: json['nev'],
type: type,
@@ -166,7 +167,7 @@ class SendRecipient {
}
Object get kretaJson => {
'azonosito': id ?? 0,
'azonosito': kretaId ?? 0,
'kretaAzonosito': kretaId ?? 0,
'nev': name ?? 'Teszt Lajos',
'tipus': {