GetUserPoolSchemaAttribute.fromMap constructor
GetUserPoolSchemaAttribute.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetUserPoolSchemaAttribute.fromMap(Map<String, dynamic> map) {
return GetUserPoolSchemaAttribute(
attributeDataType: pulumi.Input.fromValue(map['attributeDataType'] as String),
developerOnlyAttribute: pulumi.Input.fromValue(map['developerOnlyAttribute'] as bool),
mutable: pulumi.Input.fromValue(map['mutable'] as bool),
name: pulumi.Input.fromValue(map['name'] as String),
numberAttributeConstraints: pulumi.Input.fromValue(pulumi.Input.decodeList<GetUserPoolSchemaAttributeNumberAttributeConstraint>(map['numberAttributeConstraints']!, (value) => GetUserPoolSchemaAttributeNumberAttributeConstraint.fromMap((value as Map).cast<String, dynamic>()))),
required: pulumi.Input.fromValue(map['required'] as bool),
stringAttributeConstraints: pulumi.Input.fromValue(pulumi.Input.decodeList<GetUserPoolSchemaAttributeStringAttributeConstraint>(map['stringAttributeConstraints']!, (value) => GetUserPoolSchemaAttributeStringAttributeConstraint.fromMap((value as Map).cast<String, dynamic>()))),
);
}