Rect.fromJson constructor

Rect.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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