StreamDirectRawPredictResponse.fromJson constructor

StreamDirectRawPredictResponse.fromJson(
  1. 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),
    },
  );
}