toMap method

Map<String, dynamic> toMap(
  1. CustomerModel e
)

Implementation

Map<String, dynamic> toMap(CustomerModel e) {
  return {
    "id": e.id,
    "date_created": e.dateCreated,
    "date_created_gmt": e.dateCreatedGmt,
    "date_modified": e.dateModified,
    "date_modified_gmt": e.dateModifiedGmt,
    "email": e.email,
    "first_name": e.firstName,
    "last_name": e.lastName,
    "role": e.role,
    "username": e.username,
    "billing": e.billing,
    "shipping": e.shipping,
    "is_paying_customer": e.isPayingCustomer,
    "avatar_url": e.avatarUrl,
    "meta_data": e.metaData,
  };
}