factory PColorRGBA.fromJson(Map<String, dynamic> j) => PColorRGBA( parseInt(j['r']), parseInt(j['g']), parseInt(j['b']), tryParseDouble(j['a']) ?? 1.0);