aggiunto trim nei tojson
This commit is contained in:
@@ -99,9 +99,9 @@ class CustomerModel extends Equatable {
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
if (id != null) 'id': id,
|
||||
'nome': nome.toLowerCase(),
|
||||
'nome': nome.toLowerCase().trim(),
|
||||
'telefono': telefono,
|
||||
'email': email.toLowerCase(),
|
||||
'email': email.toLowerCase().trim(),
|
||||
'note': note,
|
||||
if (dataUltimoContatto != null)
|
||||
'data_ultimo_contatto': dataUltimoContatto!.toIso8601String(),
|
||||
|
||||
Reference in New Issue
Block a user