toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (responseType != null) {
    _json[r'ResponseType'] = responseType;
  }
  if (text != null) {
    _json[r'Text'] = text;
  }
  if (username != null) {
    _json[r'Username'] = username;
  }
  if (iconURL != null) {
    _json[r'IconURL'] = iconURL;
  }
  if (gotoLocation != null) {
    _json[r'GotoLocation'] = gotoLocation;
  }
  _json[r'Attachments'] = attachments;
  return _json;
}