UNPKG

@iotize/device-client.js

Version:

IoTize Device client for Javascript

12 lines (11 loc) 503 B
import { BodyEncoder, BodyDecoder } from '../../../api/converter'; export declare class ModelConverter<ModelType> implements BodyDecoder<ModelType>, BodyEncoder<ModelType> { protected _attributes: { [key: number]: any; }; constructor(_attributes: any); static instanceOfBodyConverter(value: any): any; decode(body: Uint8Array): ModelType; encode(type: ModelType): Uint8Array; static decodeData<ReturnType>(body: Uint8Array, attributes: any): ReturnType; }