FirewallPolicy.fromJson constructor

FirewallPolicy.fromJson(
  1. Map json_
)

Implementation

FirewallPolicy.fromJson(core.Map json_)
    : this(
        associations: json_.containsKey('associations')
            ? (json_['associations'] as core.List)
                .map((value) => FirewallPolicyAssociation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        ruleTupleCount: json_.containsKey('ruleTupleCount')
            ? json_['ruleTupleCount'] as core.int
            : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => FirewallPolicyRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        selfLinkWithId: json_.containsKey('selfLinkWithId')
            ? json_['selfLinkWithId'] as core.String
            : null,
        shortName: json_.containsKey('shortName')
            ? json_['shortName'] as core.String
            : null,
      );