RouteInfo.fromJson constructor

RouteInfo.fromJson(
  1. Map json_
)

Implementation

RouteInfo.fromJson(core.Map json_)
    : this(
        destIpRange: json_.containsKey('destIpRange')
            ? json_['destIpRange'] as core.String
            : null,
        destPortRanges: json_.containsKey('destPortRanges')
            ? (json_['destPortRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        instanceTags: json_.containsKey('instanceTags')
            ? (json_['instanceTags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        nccHubUri: json_.containsKey('nccHubUri')
            ? json_['nccHubUri'] as core.String
            : null,
        nccSpokeUri: json_.containsKey('nccSpokeUri')
            ? json_['nccSpokeUri'] as core.String
            : null,
        networkUri: json_.containsKey('networkUri')
            ? json_['networkUri'] as core.String
            : null,
        nextHop: json_.containsKey('nextHop')
            ? json_['nextHop'] as core.String
            : null,
        nextHopType: json_.containsKey('nextHopType')
            ? json_['nextHopType'] as core.String
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.int
            : null,
        protocols: json_.containsKey('protocols')
            ? (json_['protocols'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        routeScope: json_.containsKey('routeScope')
            ? json_['routeScope'] as core.String
            : null,
        routeType: json_.containsKey('routeType')
            ? json_['routeType'] as core.String
            : null,
        srcIpRange: json_.containsKey('srcIpRange')
            ? json_['srcIpRange'] as core.String
            : null,
        srcPortRanges: json_.containsKey('srcPortRanges')
            ? (json_['srcPortRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );