NavigationInfo.fromJson constructor

NavigationInfo.fromJson(
  1. Map json_
)

Implementation

NavigationInfo.fromJson(core.Map json_)
    : this(
        children: json_.containsKey('children')
            ? (json_['children'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        next: json_.containsKey('next') ? json_['next'] as core.String : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
        previous: json_.containsKey('previous')
            ? json_['previous'] as core.String
            : null,
      );