StreamDirectRawPredictResponse.fromJson constructor
StreamDirectRawPredictResponse.fromJson(
- Object? j
Implementation
factory StreamDirectRawPredictResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return StreamDirectRawPredictResponse(
output: switch (json['output']) {
null => Uint8List(0),
Object $1 => decodeBytes($1),
},
);
}