@override Object toJson() => { 'database': database, if (options case final options?) 'options': options.toJson(), };