/* 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 UpdateAdminUserRequest */ export interface UpdateAdminUserRequest { /** * * @type {string} * @memberof UpdateAdminUserRequest */ firstName: string; /** * * @type {string} * @memberof UpdateAdminUserRequest */ lastName: string; /** * * @type {string} * @memberof UpdateAdminUserRequest */ phone?: string | null; /** * * @type {string} * @memberof UpdateAdminUserRequest */ password?: string | null; /** * * @type {string} * @memberof UpdateAdminUserRequest */ email: string; } /** * Check if a given object implements the UpdateAdminUserRequest interface. */ export function instanceOfUpdateAdminUserRequest(value: object): value is UpdateAdminUserRequest { if (!('firstName' in value) || value['firstName'] === undefined) return false; if (!('lastName' in value) || value['lastName'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; return true; } export function UpdateAdminUserRequestFromJSON(json: any): UpdateAdminUserRequest { return UpdateAdminUserRequestFromJSONTyped(json, false); } export function UpdateAdminUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminUserRequest { if (json == null) { return json; } return { 'firstName': json['first_name'], 'lastName': json['last_name'], 'phone': json['phone'] == null ? undefined : json['phone'], 'password': json['password'] == null ? undefined : json['password'], 'email': json['email'], }; } export function UpdateAdminUserRequestToJSON(json: any): UpdateAdminUserRequest { return UpdateAdminUserRequestToJSONTyped(json, false); } export function UpdateAdminUserRequestToJSONTyped(value?: UpdateAdminUserRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'first_name': value['firstName'], 'last_name': value['lastName'], 'phone': value['phone'], 'password': value['password'], 'email': value['email'], }; }