GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.fromJson constructor
GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.fromJson(
- Map json_
Implementation
GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.fromJson(
core.Map json_)
: this(
defaultValue:
json_.containsKey('defaultValue') ? json_['defaultValue'] : null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
field:
json_.containsKey('field') ? json_['field'] as core.String : null,
fieldConstraints: json_.containsKey('fieldConstraints')
? GoogleChromePolicyVersionsV1FieldConstraints.fromJson(
json_['fieldConstraints']
as core.Map<core.String, core.dynamic>)
: null,
fieldDependencies: json_.containsKey('fieldDependencies')
? (json_['fieldDependencies'] as core.List)
.map((value) =>
GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
fieldDescription: json_.containsKey('fieldDescription')
? json_['fieldDescription'] as core.String
: null,
inputConstraint: json_.containsKey('inputConstraint')
? json_['inputConstraint'] as core.String
: null,
knownValueDescriptions: json_.containsKey('knownValueDescriptions')
? (json_['knownValueDescriptions'] as core.List)
.map((value) =>
GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nestedFieldDescriptions: json_.containsKey('nestedFieldDescriptions')
? (json_['nestedFieldDescriptions'] as core.List)
.map((value) =>
GoogleChromePolicyVersionsV1PolicySchemaFieldDescription
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
requiredItems: json_.containsKey('requiredItems')
? (json_['requiredItems'] as core.List)
.map((value) =>
GoogleChromePolicyVersionsV1PolicySchemaRequiredItems
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);