PGraphic.fromJson constructor

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

Implementation

factory PGraphic.fromJson(Map<String, dynamic> j) => PGraphic(
      Graphic.fromJson(j['graphic']),
      zIndex: j.containsKey('zIndex') ? utils.parseInt(j['zIndex']) : null,
      pos: Position.fromJson(j['position']),
      clip: bool.parse(j['clip']),
      backgroundColor: PColor.fromJson(j['backgroundColor']),
      borderColor: PColor.fromJson(j['borderColor']),
      borderSize: utils.parseInt(j['borderSize']),
    );