LanguagePackStringValue.fromJson constructor

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

Implementation

factory LanguagePackStringValue.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case LanguagePackStringValueOrdinary.CONSTRUCTOR:
      return LanguagePackStringValueOrdinary.fromJson(json);
    case LanguagePackStringValuePluralized.CONSTRUCTOR:
      return LanguagePackStringValuePluralized.fromJson(json);
    case LanguagePackStringValueDeleted.CONSTRUCTOR:
      return LanguagePackStringValueDeleted.fromJson(json);
    default:
      return const LanguagePackStringValue();
  }
}