RouteAsPath.fromJson constructor

RouteAsPath.fromJson(
  1. Map json_
)

Implementation

RouteAsPath.fromJson(core.Map json_)
    : this(
        asLists: json_.containsKey('asLists')
            ? (json_['asLists'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        pathSegmentType: json_.containsKey('pathSegmentType')
            ? json_['pathSegmentType'] as core.String
            : null,
      );