UserAuthenticationMode.fromMap constructor

UserAuthenticationMode.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory UserAuthenticationMode.fromMap(Map<String, dynamic> map) {
  return UserAuthenticationMode(
    passwordCount: (() { final guardedValue = map['passwordCount']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
    passwords: (() { final guardedValue = map['passwords']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    type: pulumi.Input.fromValue(map['type'] as String),
  );
}