Emphasis.fromJson constructor

Emphasis.fromJson(
  1. Object? raw
)

Implementation

factory Emphasis.fromJson(Object? raw) {
  final json = JsonValue.map(raw) ?? const <String, dynamic>{};
  return Emphasis(
    label: json['label'] != null ? Label.fromJson(json['label']) : null,
    itemStyle: json['itemStyle'] != null
        ? ItemStyle.fromJson(json['itemStyle'])
        : null,
  );
}