LocalModel.fromJson constructor

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

Implementation

LocalModel.fromJson(Map<String, dynamic> json) {
  if (json["title"] is String) {
    title = json["title"];
  }
  if (json["title2"] is String) {
    title2 = json["title2"];
  }
  if (json["language_code"] is String) {
    languageCode = json["language_code"];
  }
  if (json["country_code"] is String) {
    countryCode = json["country_code"];
  }
  if (json["local"] is String) {
    local = json["local"];
  }
  if (json["file_name"] is String) {
    fileName = json["file_name"];
  }
}