GoogleChromePolicyVersionsV1PolicySchema.fromJson constructor

GoogleChromePolicyVersionsV1PolicySchema.fromJson(
  1. Map json_
)

Implementation

GoogleChromePolicyVersionsV1PolicySchema.fromJson(core.Map json_)
    : this(
        accessRestrictions: (json_['accessRestrictions'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        additionalTargetKeyNames: (json_['additionalTargetKeyNames']
                as core.List?)
            ?.map((value) =>
                GoogleChromePolicyVersionsV1AdditionalTargetKeyName.fromJson(
                    value as core.Map<core.String, core.dynamic>))
            .toList(),
        categoryTitle: json_['categoryTitle'] as core.String?,
        definition: json_.containsKey('definition')
            ? Proto2FileDescriptorProto.fromJson(
                json_['definition'] as core.Map<core.String, core.dynamic>)
            : null,
        fieldDescriptions: (json_['fieldDescriptions'] as core.List?)
            ?.map((value) =>
                GoogleChromePolicyVersionsV1PolicySchemaFieldDescription
                    .fromJson(value as core.Map<core.String, core.dynamic>))
            .toList(),
        name: json_['name'] as core.String?,
        notices: (json_['notices'] as core.List?)
            ?.map((value) =>
                GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription
                    .fromJson(value as core.Map<core.String, core.dynamic>))
            .toList(),
        policyApiLifecycle: json_.containsKey('policyApiLifecycle')
            ? GoogleChromePolicyVersionsV1PolicyApiLifecycle.fromJson(
                json_['policyApiLifecycle']
                    as core.Map<core.String, core.dynamic>)
            : null,
        policyDescription: json_['policyDescription'] as core.String?,
        schemaName: json_['schemaName'] as core.String?,
        supportUri: json_['supportUri'] as core.String?,
        supportedPlatforms: (json_['supportedPlatforms'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        validTargetResources: (json_['validTargetResources'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
      );