StreamingRawPredictResponse.fromJson constructor

StreamingRawPredictResponse.fromJson(
  1. Object? j
)

Implementation

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