/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface AddressResource */ export interface AddressResource { /** * * @type {number} * @memberof AddressResource */ id?: number | null; /** * * @type {string} * @memberof AddressResource */ type?: string | null; /** * * @type {number} * @memberof AddressResource */ sourceAddressId?: number | null; /** * * @type {string} * @memberof AddressResource */ netsuiteId?: string | null; /** * * @type {string} * @memberof AddressResource */ addresseeName: string; /** * * @type {string} * @memberof AddressResource */ company: string; /** * * @type {string} * @memberof AddressResource */ line1: string; /** * * @type {string} * @memberof AddressResource */ line2: string; /** * * @type {string} * @memberof AddressResource */ postcode: string; /** * * @type {string} * @memberof AddressResource */ suburb: string; /** * * @type {string} * @memberof AddressResource */ country: string; /** * * @type {string} * @memberof AddressResource */ state: string; /** * * @type {string} * @memberof AddressResource */ fullAddress: string; } /** * Check if a given object implements the AddressResource interface. */ export function instanceOfAddressResource(value: object): value is AddressResource { if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false; if (!('company' in value) || value['company'] === undefined) return false; if (!('line1' in value) || value['line1'] === undefined) return false; if (!('line2' in value) || value['line2'] === undefined) return false; if (!('postcode' in value) || value['postcode'] === undefined) return false; if (!('suburb' in value) || value['suburb'] === undefined) return false; if (!('country' in value) || value['country'] === undefined) return false; if (!('state' in value) || value['state'] === undefined) return false; if (!('fullAddress' in value) || value['fullAddress'] === undefined) return false; return true; } export function AddressResourceFromJSON(json: any): AddressResource { return AddressResourceFromJSONTyped(json, false); } export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResource { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'type': json['type'] == null ? undefined : json['type'], 'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'], 'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'], 'addresseeName': json['addresseeName'], 'company': json['company'], 'line1': json['line1'], 'line2': json['line2'], 'postcode': json['postcode'], 'suburb': json['suburb'], 'country': json['country'], 'state': json['state'], 'fullAddress': json['fullAddress'], }; } export function AddressResourceToJSON(json: any): AddressResource { return AddressResourceToJSONTyped(json, false); } export function AddressResourceToJSONTyped(value?: AddressResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'type': value['type'], 'sourceAddressId': value['sourceAddressId'], 'netsuiteId': value['netsuiteId'], 'addresseeName': value['addresseeName'], 'company': value['company'], 'line1': value['line1'], 'line2': value['line2'], 'postcode': value['postcode'], 'suburb': value['suburb'], 'country': value['country'], 'state': value['state'], 'fullAddress': value['fullAddress'], }; }