LocalizedString.fromJson constructor

LocalizedString.fromJson(
  1. Map<String, dynamic> json
)

Constructs a LocalizedString instance from a JSON map.

json - The JSON map containing the localized string data.

Implementation

LocalizedString.fromJson(Map<String, dynamic> json)
    : this.id = Convert.toStr(json['id'], ''),
      this.translations = _parseTranslations(json);