Map<String, Object?> toJson() => { if (restart != null) '__restart': restart, if (noDebug != null) 'noDebug': noDebug, };