GoogleChromePolicyVersionsV1PolicySchema.fromJson constructor

GoogleChromePolicyVersionsV1PolicySchema.fromJson(
  1. Map json_
)

Implementation

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