LocalizedText.fromJson constructor

LocalizedText.fromJson(
  1. Map json_
)

Implementation

LocalizedText.fromJson(core.Map json_)
    : this(
        locale: json_.containsKey('locale')
            ? json_['locale'] as core.String
            : null,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
      );