CustomerRequestMessage.fromMap constructor
CustomerRequestMessage.fromMap(
- Map<String, dynamic> map
)
Implementation
factory CustomerRequestMessage.fromMap(Map<String, dynamic> map) {
return CustomerRequestMessage(
email: map['email'],
name: map['name'],
cpfOrCnpj: map['cpf_cnpj'],
withCopyEmails: map['cc_emails'],
notes: map['notes'],
customVariables: List<CustomVariables>.from(map['custom_variables']?.map((x) => CustomVariables.fromMap(x))),
zipCode: map['zip_code'],
number: map['number'],
complement: map['complement'],
);
}