PColorRGBA.fromJson constructor

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

Implementation

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