toJson method

Map<String, dynamic> toJson()

Converts instance of Customer to json

Implementation

Map<String, dynamic> toJson() {
  return {
    "email": this.email,
    "phonenumber": this.phoneNumber,
    "name": this.name
  };
}