Asset.fromJson constructor

Asset.fromJson(
  1. Map json_
)

Implementation

Asset.fromJson(core.Map json_)
    : this(
        accessLevel: json_.containsKey('accessLevel')
            ? GoogleIdentityAccesscontextmanagerV1AccessLevel.fromJson(
                json_['accessLevel'] as core.Map<core.String, core.dynamic>)
            : null,
        accessPolicy: json_.containsKey('accessPolicy')
            ? GoogleIdentityAccesscontextmanagerV1AccessPolicy.fromJson(
                json_['accessPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        ancestors: json_.containsKey('ancestors')
            ? (json_['ancestors'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        assetType: json_.containsKey('assetType')
            ? json_['assetType'] as core.String
            : null,
        iamPolicy: json_.containsKey('iamPolicy')
            ? Policy.fromJson(
                json_['iamPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        orgPolicy: json_.containsKey('orgPolicy')
            ? (json_['orgPolicy'] as core.List)
                .map((value) => GoogleCloudOrgpolicyV1Policy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        osInventory: json_.containsKey('osInventory')
            ? Inventory.fromJson(
                json_['osInventory'] as core.Map<core.String, core.dynamic>)
            : null,
        relatedAsset: json_.containsKey('relatedAsset')
            ? RelatedAsset.fromJson(
                json_['relatedAsset'] as core.Map<core.String, core.dynamic>)
            : null,
        relatedAssets: json_.containsKey('relatedAssets')
            ? RelatedAssets.fromJson(
                json_['relatedAssets'] as core.Map<core.String, core.dynamic>)
            : null,
        resource: json_.containsKey('resource')
            ? Resource.fromJson(
                json_['resource'] as core.Map<core.String, core.dynamic>)
            : null,
        servicePerimeter: json_.containsKey('servicePerimeter')
            ? GoogleIdentityAccesscontextmanagerV1ServicePerimeter.fromJson(
                json_['servicePerimeter']
                    as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );