toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'url'] = this.url;
    json[r'method'] = this.method;
    json[r'headers'] = this.headers;
  if (this.payload != null) {
    json[r'payload'] = this.payload;
  } else {
    json[r'payload'] = null;
  }
  return json;
}