@override Map<String, dynamic>? toJson(Locale? object) { if (object == null) return null; return <String, dynamic>{ 'countryCode': object.countryCode, 'languageCode': object.languageCode, }; }