GraphCrosshairSpec.fromJson constructor
GraphCrosshairSpec.fromJson(
- Json j
Implementation
factory GraphCrosshairSpec.fromJson(Json j) => GraphCrosshairSpec(
enabled: _b(j['enabled'], true),
magnet: _s(j['magnet'], ''),
on: _s(j['on'], 'both'),
vertical: _b(j['vertical'], true),
horizontal: _b(j['horizontal'], true),
line: _s(j['line'], 'dashed'),
dot: _d(j['dot'], 0),
dotStroke: _d(j['dotStroke'], 0),
timeLabel: _s(j['timeLabel'], 'axis'),
timeFormat: _s(j['timeFormat'], ''),
priceTag: _b(j['priceTag'], true),
);