RawPredictRequest.fromJson constructor

RawPredictRequest.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RawPredictRequest.fromJson(Map<String, dynamic> json) {
  return RawPredictRequest(
    endpoint: json['endpoint'] ?? '',
    httpBody: decode(json['httpBody'], HttpBody.fromJson),
  );
}