almost finished send message ui and functionality

This commit is contained in:
Kima
2023-12-12 21:55:30 +01:00
parent a175a9ea1c
commit 939e33feeb
11 changed files with 135 additions and 35 deletions

View File

@@ -157,18 +157,18 @@ class SendRecipient {
factory SendRecipient.fromJson(Map json, SendRecipientType type) {
return SendRecipient(
id: json['azonosito'],
id: int.parse(json['oktatasiAzonosito'] ?? '0'),
kretaId: json['kretaAzonosito'],
name: json['name'],
name: json['nev'],
type: type,
json: json,
);
}
Object get kretaJson => {
'azonosito': id,
'kretaAzonosito': kretaId,
'nev': name,
'azonosito': id ?? 0,
'kretaAzonosito': kretaId ?? 0,
'nev': name ?? 'Teszt Lajos',
'tipus': {
'azonosito': type.id,
'kod': type.code,