cloudflare/ts/cloudflare.classes.zone.ts

10 lines
294 B
TypeScript
Raw Permalink Normal View History

2022-09-27 17:23:20 +00:00
import * as plugins from './cloudflare.plugins.js';
2019-07-18 15:17:48 +00:00
export class CloudflareZone {
public static createFromApiObject(apiObject: plugins.ICloudflareTypes['Zone']) {
2020-02-28 14:24:36 +00:00
const cloudflareZone = new CloudflareZone();
Object.assign(cloudflareZone, apiObject);
return cloudflareZone;
}
2020-02-09 17:36:29 +00:00
}