LocalizedString.fromJson constructor

LocalizedString.fromJson(
  1. Map json_
)

Implementation

LocalizedString.fromJson(core.Map json_)
    : this(
        defaultValue: json_.containsKey('defaultValue')
            ? TranslatedString.fromJson(
                json_['defaultValue'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        translatedValues: json_.containsKey('translatedValues')
            ? (json_['translatedValues'] as core.List)
                .map((value) => TranslatedString.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );