fromJSON static method

dynamic fromJSON(
  1. dynamic data
)

Implementation

static fromJSON(data) {
  return TorusGeometry(data.radius, data.tube, data.radialSegments,
      data.tubularSegments, data.arc);
}