GraphPriceLineSpec.fromJson constructor
GraphPriceLineSpec.fromJson(
- Json j
Implementation
factory GraphPriceLineSpec.fromJson(Json j) => GraphPriceLineSpec(
value: _dn(j['value']),
field: _s(j['field'], ''),
label: _s(j['label'], ''),
color: graphColor(j['color'], const Color(0xFF2962FF)),
line: _s(j['line'], 'dashed'),
tag: _b(j['tag'], true),
byBand: _b(j['byBand'], false),
activeColor: j['activeColor'] == null ? null : graphColor(j['activeColor'], const Color(0xFF000000)),
note: _s(j['note'], ''),
);