CSSKeyframesRule.fromJson constructor

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

Implementation

factory CSSKeyframesRule.fromJson(Map<String, dynamic> json) {
  return CSSKeyframesRule(
    animationName:
        Value.fromJson(json['animationName'] as Map<String, dynamic>),
    keyframes: (json['keyframes'] as List)
        .map((e) => CSSKeyframeRule.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}