LocalizedStringBundle.fromJson constructor

LocalizedStringBundle.fromJson(
  1. Map json_
)

Implementation

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