CSSPropertyRule.fromJson constructor

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

Implementation

factory CSSPropertyRule.fromJson(Map<String, dynamic> json) {
  return CSSPropertyRule(
    styleSheetId: json.containsKey('styleSheetId')
        ? StyleSheetId.fromJson(json['styleSheetId'] as String)
        : null,
    origin: StyleSheetOrigin.fromJson(json['origin'] as String),
    propertyName:
        Value.fromJson(json['propertyName'] as Map<String, dynamic>),
    style: CSSStyle.fromJson(json['style'] as Map<String, dynamic>),
  );
}