toJson method

dynamic toJson()

Implementation

toJson() {
  return {'payload': payload, 'text': text, 'type': type, 'uri': uri};
}