Class Swiz

Index

Constructor methods

Methods

Constructor methods

constructor(defs: IObj[], options?: ISwizOptions): Swiz

Parameters

Returns

Swiz

Methods

public buildObject(obj: any, callback: (err: any, result: any) => void)

Parameters

  • obj: any
  • callback: (err: any, result: any) => void

public buildObjectSync(obj: any): any

Parameters

  • obj: any

Returns

any

public deserialize(mode: SERIALIZATION, version: number, raw: string, callback: (err: any, result: any) => void)

Parameters

  • mode: SERIALIZATION
  • version: number
  • raw: string
  • callback: (err: any, result: any) => void

public deserializeXml(xml: string): any

Parameters

  • xml: string

Returns

any

public getFieldDefinition(stype: string, name: string): IField

Parameters

  • stype: string
  • name: string

Returns

IField

public serialize(mode: SERIALIZATION, version: number, obj: ISerializable, callback: (err: any, result: string) => void)

Parameters

public serializeForPagination(mode: SERIALIZATION, array: Array<any>, metadata: any, callback: (err: any, result: string) => void)

Parameters

  • mode: SERIALIZATION
  • array: Array<any>
  • metadata: any
  • callback: (err: any, result: string) => void

public serializeJson(obj: any): string

Parameters

  • obj: any

Returns

string

public serializeXml(obj: any): string

Parameters

  • obj: any

Returns

string