PStyle.fromJson constructor

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

Implementation

factory PStyle.fromJson(Map<String, dynamic> j) => PStyle(
    color: j.containsKey('color') ? PColor.fromJson(j['color']) : null,
    size: tryParseInt(j['size']));