toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'customerId': customerId,
'title': title,
'description': description,
'typeId': typeId,
if (email != null) 'email': email,
if (name != null) 'name': name,
};
}