Mixin: JSONAble

JSONAble

A helper mixin for JSON serialization.

Static Methods

  • (static) registerJSONType(type) [source]

  • It is a static method.
    Register layer for JSON serialization and assign a JSON type.
    Parameter Type Description
    type String JSON type

  • (static) getJSONClass(type) [source]

  • It is a static method.
    Get class of input JSON type
    Parameter Type Description
    type String JSON type
    Returns:
    Class: Class
  • (static) getJSONType() [source]

  • Get object's JSON Type
    Returns:
    String: