toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'firstName': firstName,
'middleName': middleName,
'lastName': lastName,
'birthday': birthday,
'customerSince': customerSince,
'sex': sex,
'contact': contact.toMap(),
'shippingAddress': shippingAddress.toMap(),
'billingAddress': billingAddress.toMap(),
};
}