LocalizedProperty.fromJson constructor

LocalizedProperty.fromJson(
  1. Map json_
)

Implementation

LocalizedProperty.fromJson(core.Map json_)
    : this(
        default_: json_.containsKey('default')
            ? json_['default'] as core.String
            : null,
        defaultLanguage: json_.containsKey('defaultLanguage')
            ? LanguageTag.fromJson(json_['defaultLanguage']
                as core.Map<core.String, core.dynamic>)
            : null,
        localized: json_.containsKey('localized')
            ? (json_['localized'] as core.List)
                .map((value) => LocalizedString.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );