InlineObjectElement.fromJson constructor
InlineObjectElement.fromJson(
- Map json_
Implementation
InlineObjectElement.fromJson(core.Map json_)
: this(
inlineObjectId: json_.containsKey('inlineObjectId')
? json_['inlineObjectId'] as core.String
: null,
suggestedDeletionIds: json_.containsKey('suggestedDeletionIds')
? (json_['suggestedDeletionIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
suggestedInsertionIds: json_.containsKey('suggestedInsertionIds')
? (json_['suggestedInsertionIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
suggestedTextStyleChanges:
json_.containsKey('suggestedTextStyleChanges')
? (json_['suggestedTextStyleChanges']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
SuggestedTextStyle.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
textStyle: json_.containsKey('textStyle')
? TextStyle.fromJson(
json_['textStyle'] as core.Map<core.String, core.dynamic>)
: null,
);