toJson method

Map<String, dynamic> toJson()

Converts this LocalizationConfig instance to a JSON map.

This method serializes the LocalizationConfig object into a JSON representation that can be easily stored or transmitted.

Returns a Map containing the 'defaultLocale' and 'supportedLocales' keys and their corresponding values.

Implementation

Map<String, dynamic> toJson() => {
      'defaultLocale': defaultLocale,
      'supportedLocales': supportedLocales,
    };