aggiunto trim nei tojson

This commit is contained in:
brontomark committed 2026-04-13 10:43:22 +02:00
1 parent d72b329a13
commit cd21408074
2 files changed
+3 -4

No files matched your search

@@ -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(),
@@ -34,8 +34,7 @@ class ModelModel extends Equatable {
Map<String, dynamic> toJson() {
return {
if (id != null) 'id': id,
'name': name.toLowerCase(),
'name_with_brand': nameWithBrand.toLowerCase(),
'name': name.toLowerCase().trim(),
'brand_id': brandId,
'is_active': isActive,
};