toJson method
Converts this and returns a Map representing a JSON object.
This allows for easy integration with dart's JsonEncoder class.
Implementation
@override
Map toJson() {
// it is the containing object's resposibility to
// assign the correct identifier
return body.toJson();
}