toJson method
Implementation
String toJson() {
return json.encode({
"resource": "customer",
"id": id,
"mode": mode,
"name": name,
"email": email,
"locale": locale,
"metadata": metaData,
"createdAt": createdAt,
"_links": {
"self": {"href": selfUrl, "type": "application/hal+json"}
},
"documentation": {"href": documentationUrl, "type": "text/html"}
});
}