Rectangle.fromJson constructor

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

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?,
  );
}