Map<String, dynamic> toJson() => { 'stalemate': stalemate.name, 'elimination': elimination.name, if (checkLimit != null) 'checkLimit': checkLimit, };