[ static ] fromObject(object)

Class: Shape.

Description:

Converts JSON object back to Shape. To convert Shape to object use Shape.toObject() function.

Parameters:

Name Type Description

object

object

An object that has properties to recreate a Shape object.

Returns:

Returns a new instance of Shape.

Type: Shape