toJson method
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),
};