toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final url = this.url;
  final auth = this.auth;
  final confirmationUrl = this.confirmationUrl;
  final headers = this.headers;
  return {
    'url': url,
    if (auth != null) 'auth': auth,
    if (confirmationUrl != null) 'confirmationUrl': confirmationUrl,
    if (headers != null) 'headers': headers,
  };
}