rectSingleFromJson static method

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

Implementation

static Rect? rectSingleFromJson(Map<String, dynamic>? json) {
  if (json == null) return null;
  return Rect.fromLTRB(
    double.parse(json['left'].toString()),
    double.parse(json['top'].toString()),
    double.parse(json['right'].toString()),
    double.parse(json['bottom'].toString()),
  );
}