StreamRawPredictRequest.fromJson constructor
StreamRawPredictRequest.fromJson(
- Object? j
Implementation
factory StreamRawPredictRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return StreamRawPredictRequest(
endpoint: switch (json['endpoint']) {
null => '',
Object $1 => decodeString($1),
},
httpBody: switch (json['httpBody']) {
null => null,
Object $1 => HttpBody.fromJson($1),
},
);
}