import ClientFindSubEntry, { IClientFindSubEntry } from './ClientFindSubEntry'; // This file was autogenerated. Please do not change. // All changes will be overwrited on commit. export interface IClientsFindEntry { [key: string]: IClientFindSubEntry; } export default class ClientsFindEntry { readonly data: Record; constructor(props: IClientsFindEntry) { this.data = Object.entries(props).reduce>((prev, [key, value]) => { prev[key] = new ClientFindSubEntry(value!); return prev; }, {}) } serialize(): IClientsFindEntry { return Object.entries(this.data).reduce>((prev, [key, value]) => { prev[key] = value.serialize(); return prev; }, {}) } validate(): string[] { return [] } update(props: IClientsFindEntry): ClientsFindEntry { return new ClientsFindEntry({ ...this.serialize(), ...props }); } }