/* 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 CreateStoreRequestAddress */ export interface CreateStoreRequestAddress { /** * * @type {string} * @memberof CreateStoreRequestAddress */ addresseeName?: string | null; /** * * @type {string} * @memberof CreateStoreRequestAddress */ company: string; /** * * @type {string} * @memberof CreateStoreRequestAddress */ line1: string; /** * * @type {string} * @memberof CreateStoreRequestAddress */ line2?: string | null; /** * * @type {string} * @memberof CreateStoreRequestAddress */ postcode: string; /** * * @type {string} * @memberof CreateStoreRequestAddress */ suburb: string; /** * * @type {string} * @memberof CreateStoreRequestAddress */ country: string; /** * * @type {string} * @memberof CreateStoreRequestAddress */ state: string; } /** * Check if a given object implements the CreateStoreRequestAddress interface. */ export function instanceOfCreateStoreRequestAddress(value: object): value is CreateStoreRequestAddress { if (!('company' in value) || value['company'] === undefined) return false; if (!('line1' in value) || value['line1'] === 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; return true; } export function CreateStoreRequestAddressFromJSON(json: any): CreateStoreRequestAddress { return CreateStoreRequestAddressFromJSONTyped(json, false); } export function CreateStoreRequestAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStoreRequestAddress { if (json == null) { return json; } return { 'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'], 'company': json['company'], 'line1': json['line_1'], 'line2': json['line_2'] == null ? undefined : json['line_2'], 'postcode': json['postcode'], 'suburb': json['suburb'], 'country': json['country'], 'state': json['state'], }; } export function CreateStoreRequestAddressToJSON(json: any): CreateStoreRequestAddress { return CreateStoreRequestAddressToJSONTyped(json, false); } export function CreateStoreRequestAddressToJSONTyped(value?: CreateStoreRequestAddress | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'addressee_name': value['addresseeName'], 'company': value['company'], 'line_1': value['line1'], 'line_2': value['line2'], 'postcode': value['postcode'], 'suburb': value['suburb'], 'country': value['country'], 'state': value['state'], }; }