AxisTick.fromJson constructor

AxisTick.fromJson(
  1. Object? raw
)

Implementation

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