PolicyBasedRoute.fromJson constructor

PolicyBasedRoute.fromJson(
  1. Map json_
)

Implementation

PolicyBasedRoute.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        filter: json_.containsKey('filter')
            ? Filter.fromJson(
                json_['filter'] as core.Map<core.String, core.dynamic>)
            : null,
        interconnectAttachment: json_.containsKey('interconnectAttachment')
            ? InterconnectAttachment.fromJson(json_['interconnectAttachment']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        nextHopIlbIp: json_.containsKey('nextHopIlbIp')
            ? json_['nextHopIlbIp'] as core.String
            : null,
        nextHopOtherRoutes: json_.containsKey('nextHopOtherRoutes')
            ? json_['nextHopOtherRoutes'] as core.String
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.int
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        virtualMachine: json_.containsKey('virtualMachine')
            ? VirtualMachine.fromJson(json_['virtualMachine']
                as core.Map<core.String, core.dynamic>)
            : null,
        warnings: json_.containsKey('warnings')
            ? (json_['warnings'] as core.List)
                .map((value) => Warnings.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );