Customer.fromObject constructor
Customer.fromObject(
- Map data
Implementation
factory Customer.fromObject(Map data) {
return Customer(
name: data['name']?.toString(),
identificationTypeId: data['identificationTypeId']?.toString(),
identificationNumber: data['identificationNumber']?.toString(),
dv: data['dv']?.toString(),
responsabilityTypeId: data['responsabilityTypeId']?.toString(),
regimeTypeId: data['regimeTypeId']?.toString(),
organizationTypeId: data['organizationTypeId']?.toString(),
municipalityId: data['municipalityId']?.toString(),
address: data['address']?.toString(),
email: data['email']?.toString(),
phone: data['phone']?.toString(),
state: data['state']?.toString(),
);
}