InheritedStyleEntry.fromJson constructor

InheritedStyleEntry.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory InheritedStyleEntry.fromJson(Map<String, dynamic> json) {
  return InheritedStyleEntry(
    inlineStyle: json.containsKey('inlineStyle')
        ? CSSStyle.fromJson(json['inlineStyle'] as Map<String, dynamic>)
        : null,
    matchedCSSRules: (json['matchedCSSRules'] as List)
        .map((e) => RuleMatch.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}