/* 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 ProductRegistrationLiteResource */ export interface ProductRegistrationLiteResource { /** * * @type {number} * @memberof ProductRegistrationLiteResource */ id?: number | null; /** * * @type {Date} * @memberof ProductRegistrationLiteResource */ purchasedDate: Date; } /** * Check if a given object implements the ProductRegistrationLiteResource interface. */ export function instanceOfProductRegistrationLiteResource(value: object): value is ProductRegistrationLiteResource { if (!('purchasedDate' in value) || value['purchasedDate'] === undefined) return false; return true; } export function ProductRegistrationLiteResourceFromJSON(json: any): ProductRegistrationLiteResource { return ProductRegistrationLiteResourceFromJSONTyped(json, false); } export function ProductRegistrationLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationLiteResource { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'purchasedDate': (new Date(json['purchasedDate'])), }; } export function ProductRegistrationLiteResourceToJSON(json: any): ProductRegistrationLiteResource { return ProductRegistrationLiteResourceToJSONTyped(json, false); } export function ProductRegistrationLiteResourceToJSONTyped(value?: ProductRegistrationLiteResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'purchasedDate': ((value['purchasedDate']).toISOString()), }; }