TextContent.fromJson constructor
TextContent.fromJson(
- Map json_
Implementation
TextContent.fromJson(core.Map json_)
: this(
lists: json_.containsKey('lists')
? (json_['lists'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
List.fromJson(value as core.Map<core.String, core.dynamic>),
),
)
: null,
textElements: json_.containsKey('textElements')
? (json_['textElements'] as core.List)
.map((value) => TextElement.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);