Even when I don’t use the mapping function I still get the same error.
var person = new Person(fieldTemplate.SystemId)
{
FirstName = model.NewAccount.FirstName,
LastName = model.NewAccount.LastName,
Email = model.NewAccount.Email,
Phone = model.NewAccount.Phone,
LoginCredential = {
Username = model.NewAccount.Email,
NewPassword = model.NewAccount.Password
}
};