import { Entity } from "./entity"; export class Endereco extends Entity{ principal?: boolean; bairro: string; cep: string; cidade: string; descricao: string; logradouro: string; complemento: string; uf: string; numero: string; tipo: Array<'cobranca'|'entrega'>; ibge: string; ponto_referencia: string; constructor(json?: any) { super(json); json = json || {} this.principal = json.principal || false this.bairro = json.bairro || '' this.cep = json.cep || '' this.cidade = json.cidade || '' this.descricao = json.descricao || '' this.logradouro = json.logradouro || '' this.complemento = json.complemento || '' this.uf = json.uf || '' this.numero = json.numero || '' this.tipo = json.tipo || '' this.ibge = json.ibge || '' this.ponto_referencia = json.ponto_referencia || '' } }