Text.fromJson constructor
Text.fromJson(
- Map _json
Implementation
Text.fromJson(core.Map _json)
: this(
hexColor: _json.containsKey('hexColor')
? _json['hexColor'] as core.String
: null,
localizations: _json.containsKey('localizations')
? (_json['localizations'] as core.List)
.map((value) => Localization.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sourceLangCode: _json.containsKey('sourceLangCode')
? _json['sourceLangCode'] as core.String
: null,
text: _json.containsKey('text') ? _json['text'] as core.String : null,
);