toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json[r'url'] = url;
  _json[r'channel_id'] = channelId;
  _json[r'team_id'] = teamId;
  _json[r'submission'] = submission;
  if (callbackId != null) {
    _json[r'callback_id'] = callbackId;
  }
  if (state != null) {
    _json[r'state'] = state;
  }
  if (cancelled != null) {
    _json[r'cancelled'] = cancelled;
  }
  return _json;
}