Using Motoko Variant in Proposal

I’m hunting for an example or some docs on calling this proposal:

My type uses a variant


  public type PlayerPosition = {
    #Goalkeeper;
    #Defender;
    #Midfielder;
    #Forward;
  };

Validation function expects:


  public type CreatePlayerDTO = {
    clubId : T.ClubId;
    position : T.PlayerPosition;
    firstName : Text;
    lastName : Text;
    shirtNumber : Nat8;
    valueQuarterMillions : Nat16;
    dateOfBirth : Int;
    nationality : T.CountryId;
  };

Any help appreciated.

dropping the hash in the proposal definition gives me this error

This worked dw

position = variant { Defender };