Home Reference Source
public class | source

UnknownValue

UnknownValue

A model representing an unknown type of value in Skygear record.

Static Method Summary

Static Public Methods
public static

fromJSON(attrs: Object): *

Constructs a new UnknownValue object from JSON object.

Constructor Summary

Public Constructor
public

constructor(underlyingType: String)

Constructs a new UnknownValue object.

Member Summary

Public Members
public

Method Summary

Public Methods
public

toJSON(): Object

Serializes UnknownValue to a JSON object.

Static Public Methods

public static fromJSON(attrs: Object): * source

Constructs a new UnknownValue object from JSON object.

Params:

NameTypeAttributeDescription
attrs Object

the JSON object

attrs.$underlying_type String

underlying type of the value

Return:

*

Public Constructors

public constructor(underlyingType: String) source

Constructs a new UnknownValue object.

Params:

NameTypeAttributeDescription
underlyingType String

underlying type of the value

Public Members

public underlyingType: * source

Public Methods

public toJSON(): Object source

Serializes UnknownValue to a JSON object.

Return:

Object

the JSON object