BreadCrumb.fromJson constructor Null safety

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

Implementation

factory BreadCrumb.fromJson(Map<String, dynamic> json) => BreadCrumb(
      id: json["id"],
      title: json["title"],
      resultsCount: json["resultsCount"],
      children: json["children"] == null
          ? null
          : List<BreadCrumb>.from(
              json["children"].map((x) => BreadCrumb.fromJson(x))),
      hexaCode: json["hexaCode"],
    );