XAxisPointer.fromJson constructor

XAxisPointer.fromJson(
  1. Object? raw
)

Implementation

factory XAxisPointer.fromJson(Object? raw) {
  if (raw is XAxisPointer) return raw;
  final json = JsonValue.map(raw) ?? const <String, dynamic>{};
  return XAxisPointer(type: JsonValue.string(json['type']));
}