using System.Text.Json.Serialization; namespace RecRoomArchive.Models.API.GameSessions { public class JoinGameSessionResponse { [JsonPropertyName(name: "Result")] public JoinGameErrorCode Result { get; set; } = JoinGameErrorCode.Success; [JsonPropertyName(name: "GameSession")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public GameSession? GameSession { get; set; } } }