decode static method

PyTorchRect decode(
  1. Object message
)

Implementation

static PyTorchRect decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return PyTorchRect(
    left: pigeonMap['left']! as double,
    top: pigeonMap['top']! as double,
    right: pigeonMap['right']! as double,
    bottom: pigeonMap['bottom']! as double,
    width: pigeonMap['width']! as double,
    height: pigeonMap['height']! as double,
  );
}