AndrossyLocalizer.fromJson constructor

AndrossyLocalizer.fromJson(
  1. String json
)

Example JSON

{
  "Home": {
    "bn": "হোম"
  },
  "Notification": {
    "bn": "বার্তা"
  },
  "Profile": {
    "bn": "প্রোফাইল"
  }
}

Example

 var json = await rootBundle.loadString("assets/contents/localizations.json");
 Localizer localizer = Localizer.fromJson(json);

Implementation

AndrossyLocalizer.fromJson(String json)
    : localizations = _json(jsonDecode(json));