toJson method
Returns the information stored in this object in a way the it could be
encoded via jsonEncode()
.
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> newJson = super.toJson();
newJson[BrokerKeys.messageType] = BrokerKeys.serviceReply;
if (results != null) newJson[BrokerKeys.results] = results;
return newJson;
}