LabelItem.fromJson constructor

LabelItem.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LabelItem.fromJson(Map<String, dynamic> json) {
  return LabelItem(
    subLabels: json['subLabels'] != null
        ? (json['subLabels'] as List)
            .map((i) => SubLabel.fromJson(i))
            .toList()
        : null,
    level: json['level'],
    label: json['label'],
  );
}