@override Map<String, Object?> toJson() => { 'if': condition, 'then': then.toJson(), if (otherwise != null) 'else': otherwise!.toJson(), };