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