PublicAdvertisedPrefix.fromJson constructor

PublicAdvertisedPrefix.fromJson(
  1. Map json_
)

Implementation

PublicAdvertisedPrefix.fromJson(core.Map json_)
    : this(
        byoipApiVersion: json_.containsKey('byoipApiVersion')
            ? json_['byoipApiVersion'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        dnsVerificationIp: json_.containsKey('dnsVerificationIp')
            ? json_['dnsVerificationIp'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        ipCidrRange: json_.containsKey('ipCidrRange')
            ? json_['ipCidrRange'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pdpScope: json_.containsKey('pdpScope')
            ? json_['pdpScope'] as core.String
            : null,
        publicDelegatedPrefixs: json_.containsKey('publicDelegatedPrefixs')
            ? (json_['publicDelegatedPrefixs'] as core.List)
                .map((value) =>
                    PublicAdvertisedPrefixPublicDelegatedPrefix.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        sharedSecret: json_.containsKey('sharedSecret')
            ? json_['sharedSecret'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );