Rect.fromJson(Map<String, dynamic> json) { x = json['x']; y = json['y']; width = json['width']; height = json['height']; }