AxisPointer.fromJson constructor
AxisPointer.fromJson(
- Object? raw
Implementation
factory AxisPointer.fromJson(Object? raw) {
if (raw is AxisPointer) return raw;
final json = JsonValue.map(raw) ?? const <String, dynamic>{};
return AxisPointer(
type: JsonValue.string(json['type']),
lineStyle: json['lineStyle'] != null
? LineStyle.fromJson(json['lineStyle'])
: null,
shadowStyle: json['shadowStyle'] != null
? ShadowStyle.fromJson(json['shadowStyle'])
: null,
);
}