LayerPaintedEvent.fromJson constructor

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

Implementation

factory LayerPaintedEvent.fromJson(Map<String, dynamic> json) {
  return LayerPaintedEvent(
    layerId: LayerId.fromJson(json['layerId'] as String),
    clip: dom.Rect.fromJson(json['clip'] as Map<String, dynamic>),
  );
}