PatchbaySemanticsRectWire.fromJson constructor
Decodes a strict JSON object at path.
Implementation
factory PatchbaySemanticsRectWire.fromJson(
Map<String, Object?> json, {
String path = r'$',
}) {
_wireKeys(json, const <String>{'left', 'top', 'width', 'height'}, path);
return PatchbaySemanticsRectWire(
left: _wireNum(json['left'], '$path.left'),
top: _wireNum(json['top'], '$path.top'),
width: _wireNum(json['width'], '$path.width'),
height: _wireNum(json['height'], '$path.height'),
);
}