parseAnimations method

dynamic parseAnimations(
  1. dynamic json
)

Implementation

parseAnimations(json) {
  final animations = {};

  if (json != null) {
    for (int i = 0; i < json.length; i++) {
      final data = json[i];

      final clip = AnimationClip.parse(data);
      animations[clip.uuid] = clip;
    }
  }

  return animations;
}