serializeBody<T> method
Serializes body
if it conforms to Serializable.
Implementation
@visibleForTesting
Object? serializeBody<T>(T? body) {
if (body is! Serializable) return body;
return jsonEncode(body.toJson());
}
Serializes body
if it conforms to Serializable.
@visibleForTesting
Object? serializeBody<T>(T? body) {
if (body is! Serializable) return body;
return jsonEncode(body.toJson());
}