fromJson static method

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

Implementation

static DomRange? fromJson(Map<String, dynamic>? json) {
  Point? start = Point.fromJson(json?.optJSONObject("start"));
  if (start == null) {
    return null;
  }

  return DomRange(
      start: start, end: Point.fromJson(json?.optJSONObject("end")));
}