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