toJson method

  1. @override
Map toJson()
override

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();
}