fromMap static method

PyTorchRect fromMap(
  1. Map<String, dynamic> map
)

Implementation

static PyTorchRect fromMap(Map<String, dynamic> map) {
  return PyTorchRect(
    left: map['left'],
    top: map['top'],
    width: map['width'],
    height: map['height'],
    right: map['right'],
    bottom: map['bottom'],
  );
}