PRectangleElement.fromJson constructor

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

Implementation

factory PRectangleElement.fromJson(Map<String, dynamic> j) =>
    PRectangleElement(
      style: PStyle.fromJson(j['style']),
      pos: Position.fromJson(j['position']),
      dimension: PDimension.fromJson(j['dimension']),
      zIndex: j.containsKey('zIndex') ? parseInt(j['zIndex']) : null,
    );