CSSKeyframeRule.fromJson constructor

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

Implementation

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