parseAsync method

dynamic parseAsync(
  1. Map<String, dynamic> json
)

Implementation

parseAsync(Map<String, dynamic> json) async {
  var animations = parseAnimations(json["animations"]);
  var shapes = parseShapes(json["shapes"]);
  var geometries = parseGeometries(json["geometries"], shapes);

  var images = await parseImages(json["images"], null);

  var textures = parseTextures(json["textures"], images);
  var materials = parseMaterials(json["materials"], textures);

  var object = parseObject(json["object"], geometries, materials, textures, animations);

  return object;
}