PublicDelegatedPrefix.fromJson constructor

PublicDelegatedPrefix.fromJson(
  1. Map json_
)

Implementation

PublicDelegatedPrefix.fromJson(core.Map json_)
    : this(
        allocatablePrefixLength: json_.containsKey('allocatablePrefixLength')
            ? json_['allocatablePrefixLength'] as core.int
            : null,
        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,
        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,
        isLiveMigration: json_.containsKey('isLiveMigration')
            ? json_['isLiveMigration'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parentPrefix: json_.containsKey('parentPrefix')
            ? json_['parentPrefix'] as core.String
            : null,
        publicDelegatedSubPrefixs: json_
                .containsKey('publicDelegatedSubPrefixs')
            ? (json_['publicDelegatedSubPrefixs'] as core.List)
                .map((value) =>
                    PublicDelegatedPrefixPublicDelegatedSubPrefix.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );