/* 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 ValidateSuburbRequest */ export interface ValidateSuburbRequest { /** * * @type {number} * @memberof ValidateSuburbRequest */ siteId: number; /** * * @type {string} * @memberof ValidateSuburbRequest */ suburb: string; /** * * @type {string} * @memberof ValidateSuburbRequest */ state: string; /** * * @type {string} * @memberof ValidateSuburbRequest */ postcode: string; } /** * Check if a given object implements the ValidateSuburbRequest interface. */ export function instanceOfValidateSuburbRequest(value: object): value is ValidateSuburbRequest { if (!('siteId' in value) || value['siteId'] === undefined) return false; if (!('suburb' in value) || value['suburb'] === undefined) return false; if (!('state' in value) || value['state'] === undefined) return false; if (!('postcode' in value) || value['postcode'] === undefined) return false; return true; } export function ValidateSuburbRequestFromJSON(json: any): ValidateSuburbRequest { return ValidateSuburbRequestFromJSONTyped(json, false); } export function ValidateSuburbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateSuburbRequest { if (json == null) { return json; } return { 'siteId': json['site_id'], 'suburb': json['suburb'], 'state': json['state'], 'postcode': json['postcode'], }; } export function ValidateSuburbRequestToJSON(json: any): ValidateSuburbRequest { return ValidateSuburbRequestToJSONTyped(json, false); } export function ValidateSuburbRequestToJSONTyped(value?: ValidateSuburbRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'site_id': value['siteId'], 'suburb': value['suburb'], 'state': value['state'], 'postcode': value['postcode'], }; }