MultiSelectNestedItem.fromJson constructor

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

Implementation

factory MultiSelectNestedItem.fromJson(Map<String, dynamic> json) {
  return MultiSelectNestedItem(
    id: json['id'],
    name: json['name'],
    children: json["children"] == null
        ? []
        : List<MultiSelectNestedItem>.from(json["children"]
            .map((item) => MultiSelectNestedItem.fromJson(item))),
  );
}