toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. Locale? object
)
override

Implementation

@override
Map<String, dynamic>? toJson(Locale? object) {
  if (object == null) return null;

  return <String, dynamic>{
    'countryCode': object.countryCode,
    'languageCode': object.languageCode,
  };
}