AxisLabel.fromJson constructor
AxisLabel.fromJson(
- Object? raw
Implementation
factory AxisLabel.fromJson(Object? raw) {
if (raw is AxisLabel) return raw;
final json = JsonValue.map(raw) ?? const <String, dynamic>{};
return AxisLabel(
formatter: JsonValue.string(json['formatter']),
show: JsonValue.boolOrNull(json['show']) ?? true,
textStyle: json['textStyle'] != null
? ChartTextStyle.fromJson(json['textStyle'])
: null,
);
}