toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "gid": gid,
    "email": email,
    "name": name,
    "phoneNumber": phoneNumber,
    "taxId": taxId,
    "taxStatus": taxStatus,
    "taxValue": taxValue,
    "billingAddress": billingAddress?.toMap(),
    "shippingAddress": shippingAddress?.toMap()
  };
}