RichLink.fromJson constructor
RichLink.fromJson(
- Map json_
Implementation
RichLink.fromJson(core.Map json_)
: this(
richLinkId: json_.containsKey('richLinkId')
? json_['richLinkId'] as core.String
: null,
richLinkProperties: json_.containsKey('richLinkProperties')
? RichLinkProperties.fromJson(json_['richLinkProperties']
as core.Map<core.String, core.dynamic>)
: 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,
);