toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final allQueryArguments = this.allQueryArguments;
  final body = this.body;
  final method = this.method;
  final queryString = this.queryString;
  final singleHeader = this.singleHeader;
  final singleQueryArgument = this.singleQueryArgument;
  final uriPath = this.uriPath;
  return {
    if (allQueryArguments != null) 'AllQueryArguments': allQueryArguments,
    if (body != null) 'Body': body,
    if (method != null) 'Method': method,
    if (queryString != null) 'QueryString': queryString,
    if (singleHeader != null) 'SingleHeader': singleHeader,
    if (singleQueryArgument != null)
      'SingleQueryArgument': singleQueryArgument,
    if (uriPath != null) 'UriPath': uriPath,
  };
}