AnimationEffect.fromJson constructor

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

Implementation

factory AnimationEffect.fromJson(Map<String, dynamic> json) {
  return AnimationEffect(
    delay: json['delay'] as num,
    endDelay: json['endDelay'] as num,
    iterationStart: json['iterationStart'] as num,
    iterations: json['iterations'] as num,
    duration: json['duration'] as num,
    direction: json['direction'] as String,
    fill: json['fill'] as String,
    backendNodeId: json.containsKey('backendNodeId')
        ? dom.BackendNodeId.fromJson(json['backendNodeId'] as int)
        : null,
    keyframesRule: json.containsKey('keyframesRule')
        ? KeyframesRule.fromJson(
            json['keyframesRule'] as Map<String, dynamic>)
        : null,
    easing: json['easing'] as String,
  );
}