parseGltfJson function
Implementation
GltfDocument parseGltfJson(Map<String, Object?> json) {
return GltfDocument(
scene: json['scene'] as int?,
scenes: _list(json['scenes'], _parseScene),
nodes: _list(json['nodes'], _parseNode),
meshes: _list(json['meshes'], _parseMesh),
accessors: _list(json['accessors'], _parseAccessor),
bufferViews: _list(json['bufferViews'], _parseBufferView),
buffers: _list(json['buffers'], _parseBuffer),
materials: _list(json['materials'], _parseMaterial),
textures: _list(json['textures'], _parseTexture),
images: _list(json['images'], _parseImage),
samplers: _list(json['samplers'], _parseSampler),
skins: _list(json['skins'], _parseSkin),
animations: _list(json['animations'], _parseAnimation),
);
}