GetMatchedStylesForNodeResult.fromJson constructor
GetMatchedStylesForNodeResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetMatchedStylesForNodeResult.fromJson(Map<String, dynamic> json) {
return GetMatchedStylesForNodeResult(
inlineStyle: json.containsKey('inlineStyle')
? CSSStyle.fromJson(json['inlineStyle'] as Map<String, dynamic>)
: null,
attributesStyle: json.containsKey('attributesStyle')
? CSSStyle.fromJson(json['attributesStyle'] as Map<String, dynamic>)
: null,
matchedCSSRules: json.containsKey('matchedCSSRules')
? (json['matchedCSSRules'] as List)
.map((e) => RuleMatch.fromJson(e as Map<String, dynamic>))
.toList()
: null,
pseudoElements: json.containsKey('pseudoElements')
? (json['pseudoElements'] as List)
.map((e) =>
PseudoElementMatches.fromJson(e as Map<String, dynamic>))
.toList()
: null,
inherited: json.containsKey('inherited')
? (json['inherited'] as List)
.map((e) =>
InheritedStyleEntry.fromJson(e as Map<String, dynamic>))
.toList()
: null,
inheritedPseudoElements: json.containsKey('inheritedPseudoElements')
? (json['inheritedPseudoElements'] as List)
.map((e) => InheritedPseudoElementMatches.fromJson(
e as Map<String, dynamic>))
.toList()
: null,
cssKeyframesRules: json.containsKey('cssKeyframesRules')
? (json['cssKeyframesRules'] as List)
.map((e) => CSSKeyframesRule.fromJson(e as Map<String, dynamic>))
.toList()
: null,
parentLayoutNodeId: json.containsKey('parentLayoutNodeId')
? dom.NodeId.fromJson(json['parentLayoutNodeId'] as int)
: null,
);
}