PCanvasBackgroundGradient.fromJson constructor
Implementation
factory PCanvasBackgroundGradient.fromJson(Map<String, dynamic> j) =>
PCanvasBackgroundGradient(
PColor.fromJson(j['colorFrom']),
PColor.fromJson(j['colorTo']),
pos: Position.fromJson(j['position']),
dimension: PDimension.fromJson(j['dimension']),
zIndex: j.containsKey('zIndex') ? parseInt(j['zIndex']) : defaultZIndex,
);