Rectangle.fromJson constructor
Implementation
factory Rectangle.fromJson(Map<String, dynamic> json) {
return Rectangle(
height: json['height'] as int?,
width: json['width'] as int?,
x: json['x'] as int?,
y: json['y'] as int?,
);
}