@iotize/tap
Version:
IoTize Device client for Javascript
28 lines (27 loc) • 747 B
TypeScript
import { IotizeConfigModel } from './model/iotize-config-model';
/**
* Utility class to create iotize config model from XML or JSON file
*/
export declare class IotizeConfigFactory {
/**
* Create IotizeConfigModel from a XML string
* @param xml
*/
static fromXML(xml: string): IotizeConfigModel;
/**
* Create IotizeConfigModel from a JSON string
* @param json
*/
static fromJson(json: string): IotizeConfigModel;
/**
* Build and IotizeConfigModel
* Input can either be
* - A json string
* - A XML string
* - A JSON Object
*
* TODO create test
* @param data
*/
static create(data: string | Object): IotizeConfigModel;
}