Sphere.from_json

classmethod Sphere.from_json(filepath)

Construct a primitive from structured data contained in a json file.

Parameters

filepath (str) – The path to the json file.

Returns

object – An object of the type of cls.

Notes

This constructor method is meant to be used in conjunction with the corresponding to_json method.