TextStyle.fromJson constructor
TextStyle.fromJson(
- Map json_
Implementation
TextStyle.fromJson(core.Map json_)
: this(
backgroundColor: json_.containsKey('backgroundColor')
? OptionalColor.fromJson(json_['backgroundColor']
as core.Map<core.String, core.dynamic>)
: null,
baselineOffset: json_.containsKey('baselineOffset')
? json_['baselineOffset'] as core.String
: null,
bold: json_.containsKey('bold') ? json_['bold'] as core.bool : null,
fontSize: json_.containsKey('fontSize')
? Dimension.fromJson(
json_['fontSize'] as core.Map<core.String, core.dynamic>)
: null,
foregroundColor: json_.containsKey('foregroundColor')
? OptionalColor.fromJson(json_['foregroundColor']
as core.Map<core.String, core.dynamic>)
: null,
italic:
json_.containsKey('italic') ? json_['italic'] as core.bool : null,
link: json_.containsKey('link')
? Link.fromJson(
json_['link'] as core.Map<core.String, core.dynamic>)
: null,
smallCaps: json_.containsKey('smallCaps')
? json_['smallCaps'] as core.bool
: null,
strikethrough: json_.containsKey('strikethrough')
? json_['strikethrough'] as core.bool
: null,
underline: json_.containsKey('underline')
? json_['underline'] as core.bool
: null,
weightedFontFamily: json_.containsKey('weightedFontFamily')
? WeightedFontFamily.fromJson(json_['weightedFontFamily']
as core.Map<core.String, core.dynamic>)
: null,
);