toJson method
Implementation
@override
Object toJson() => {
if (method.isNotDefault) 'method': method,
if (uri.isNotDefault) 'uri': uri,
if (headers.isNotDefault) 'headers': encodeList(headers),
if (body.isNotDefault) 'body': encodeBytes(body),
};