toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (httpMethod.isNotDefault) 'httpMethod': httpMethod.toJson(),
  'appEngineRouting': ?appEngineRouting?.toJson(),
  if (relativeUri.isNotDefault) 'relativeUri': relativeUri,
  if (headers.isNotDefault) 'headers': headers,
  if (body.isNotDefault) 'body': encodeBytes(body),
};