Rect.fromJson constructor

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

Implementation

factory Rect.fromJson(Map<String, dynamic> json) {
  return Rect(
    x: json['x'] as num,
    y: json['y'] as num,
    width: json['width'] as num,
    height: json['height'] as num,
  );
}