KeyframesRule.fromJson constructor

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

Implementation

factory KeyframesRule.fromJson(Map<String, dynamic> json) {
  return KeyframesRule(
    name: json.containsKey('name') ? json['name'] as String : null,
    keyframes: (json['keyframes'] as List)
        .map((e) => KeyframeStyle.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}