CSSTryRule.fromJson constructor

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

Implementation

factory CSSTryRule.fromJson(Map<String, dynamic> json) {
  return CSSTryRule(
    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>),
  );
}