fromJson static method

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

Implementation

static LanguagePackStrings? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return LanguagePackStrings(
    strings: List<LanguagePackString>.from(
      tdListFromJson(json['strings'])
          .map((item) => LanguagePackString.fromJson(tdMapFromJson(item)))
          .whereType<LanguagePackString>(),
    ),
  );
}