UNPKG

xiot-core-spec-ts

Version:
19 lines (18 loc) 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PropertyImageCodec = void 0; const PropertyImage_1 = require("../../typedef/image/PropertyImage"); const PropertyCodec_1 = require("../instance/PropertyCodec"); class PropertyImageCodec { static decodeArray(array) { const list = []; if (array != null) { for (const o of array) { const p = PropertyImage_1.PropertyImage.copy(PropertyCodec_1.PropertyCodec.decode(o)); list.push(p); } } return list; } } exports.PropertyImageCodec = PropertyImageCodec;