toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final prefix = this.prefix;
  final headers = this.headers;
  final method = this.method;
  final scheme = this.scheme;
  return {
    'prefix': prefix,
    if (headers != null) 'headers': headers,
    if (method != null) 'method': method.toValue(),
    if (scheme != null) 'scheme': scheme.toValue(),
  };
}