decode static method

ResultObjectDetection decode(
  1. Object message
)

Implementation

static ResultObjectDetection decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return ResultObjectDetection(
    classIndex: pigeonMap['classIndex']! as int,
    className: pigeonMap['className'] as String?,
    score: pigeonMap['score']! as double,
    rect: PyTorchRect.decode(pigeonMap['rect']!)
    ,
  );
}