CSSPositionTryRule.fromJson constructor
CSSPositionTryRule.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CSSPositionTryRule.fromJson(Map<String, dynamic> json) {
return CSSPositionTryRule(
name: Value.fromJson(json['name'] as Map<String, dynamic>),
styleSheetId: json.containsKey('styleSheetId')
? StyleSheetId.fromJson(json['styleSheetId'] as String)
: null,
origin: StyleSheetOrigin.fromJson(json['origin'] as String),
style: CSSStyle.fromJson(json['style'] as Map<String, dynamic>),
active: json['active'] as bool? ?? false,
);
}