RouterBgp.fromJson constructor

RouterBgp.fromJson(
  1. Map json_
)

Implementation

RouterBgp.fromJson(core.Map json_)
    : this(
        advertiseMode: json_.containsKey('advertiseMode')
            ? json_['advertiseMode'] as core.String
            : null,
        advertisedGroups: json_.containsKey('advertisedGroups')
            ? (json_['advertisedGroups'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        advertisedIpRanges: json_.containsKey('advertisedIpRanges')
            ? (json_['advertisedIpRanges'] as core.List)
                .map((value) => RouterAdvertisedIpRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        asn: json_.containsKey('asn') ? json_['asn'] as core.int : null,
        keepaliveInterval: json_.containsKey('keepaliveInterval')
            ? json_['keepaliveInterval'] as core.int
            : null,
      );