UNPKG

aps-data-api

Version:

package for data extraction from APS company for omnimetic project

21 lines (17 loc) 573 B
import { LooseObject } from '../../typings'; import { UtilityServiceAccountResponse } from './utility-service-account-response'; export class UtilityUserAccountResponse implements LooseObject { id: string; name: string; serviceAccounts: UtilityServiceAccountResponse[]; constructor(json?: any) { if (json) { this.id = json.id; this.name = json.name; this.serviceAccounts = json.serviceAccounts.map( (serviceAccount: UtilityServiceAccountResponse) => new UtilityServiceAccountResponse(serviceAccount), ); } } }