@override num? toJson(bool? object) { if (object == null) return null; return const BoolConverter().toJson(object); }