import { decodeFields } from '@dvn/core/doldurma/src/decoder';
import { MembershipConfig } from '@dvn/core/models/membership-config';
import { Space } from '@dvn/core/models/space';
import { TableConfig } from '@dvn/core/models/table-config';
export class AvailabilityConfig extends TableConfig {
  static decode(json) {
    const model = Object.assign(Object.create(MembershipConfig.prototype), json);
    model.fields = decodeFields(model.fields);
    model.space = Space.decode(model.space);
    return model;
  }
}
