Map<String, Object?> toJson() { final sessions = this.sessions; return { if (sessions != null) 'sessions': sessions.map((v) => v.toJson()).toList(), }; }