static HttpBody? from(Object? body, [MimeType? mimeType]) { if (body == null) return null; if (body is HttpBody) return body; return HttpBody._(body, mimeType); }