setParamsFromJson method

void setParamsFromJson(
  1. Map<String, dynamic> json
)

Implementation

void setParamsFromJson(Map<String, dynamic> json) {
  final mapLayer = MapLayer.fromJson(json);
  id = mapLayer.id;
  name = mapLayer.name;
  layerClass = mapLayer.layerClass;
  offsetX = mapLayer.offsetX;
  offsetY = mapLayer.offsetY;
  opacity = mapLayer.opacity;
  type = mapLayer.type;
  visible = mapLayer.visible;
  x = mapLayer.x;
  y = mapLayer.y;
  properties = mapLayer.properties;
}