Map<String, dynamic> toJson() { return { 'id': id, 'customerId': customerId, if (email != null) 'email': email, if (name != null) 'name': name, }; }