_20.Events.SubstitutionEvent.serialize C# (CSharp) Method

serialize() public method

Converts this class to a Json serialized object, with the correct fields.
public serialize ( ) : string
return string
        public override string serialize()
        {
            return JsonConvert.SerializeObject(new
            {
                gameId=pac.GameID,
                exitingPlayer=idGoingOut,
                enteringPlayer=idGoingIn,
                context=context
            });
        }