toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (raw != null) "raw": encodeValue(raw),
if (scheme != null) "scheme": encodeValue(scheme),
if (host != null) "host": encodeValue(host),
if (status != null) "status": encodeValue(status),
if (reason != null) "reason": encodeValue(reason),
};