PCanvasElement.fromJson constructor

PCanvasElement.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory PCanvasElement.fromJson(Map<String, dynamic> j) {
  var className = j['className'];

  switch (className) {
    default:
      return PCanvasElement2D.fromJson(j);
  }
}