ObjectLayer.fromJson constructor

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

Implementation

ObjectLayer.fromJson(Map<String, dynamic> json) {
  drawOrder = json['draworder'];
  if (json['objects'] != null) {
    objects = <Objects>[];
    json['objects'].forEach((v) {
      objects?.add(Objects.fromJson(v));
    });
  }
  setParamsFromJson(json);
}