toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final submitUrl = this.submitUrl;
  return {
    'sid': sid,
    if (submitUrl != null) 'submit_url': submitUrl.toString(),
  };
}