/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * 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 ApiUserDTO */ export interface ApiUserDTO { /** * * @type {string} * @memberof ApiUserDTO */ email?: string; /** * * @type {string} * @memberof ApiUserDTO */ firstName?: string; /** * * @type {string} * @memberof ApiUserDTO */ lastName?: string; /** * * @type {string} * @memberof ApiUserDTO */ password?: string; /** * * @type {string} * @memberof ApiUserDTO */ realm?: string; /** * * @type {string} * @memberof ApiUserDTO */ username?: string; } /** * Check if a given object implements the ApiUserDTO interface. */ export function instanceOfApiUserDTO(value: object): value is ApiUserDTO { return true; } export function ApiUserDTOFromJSON(json: any): ApiUserDTO { return ApiUserDTOFromJSONTyped(json, false); } export function ApiUserDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserDTO { if (json == null) { return json; } return { 'email': json['email'] == null ? undefined : json['email'], 'firstName': json['firstName'] == null ? undefined : json['firstName'], 'lastName': json['lastName'] == null ? undefined : json['lastName'], 'password': json['password'] == null ? undefined : json['password'], 'realm': json['realm'] == null ? undefined : json['realm'], 'username': json['username'] == null ? undefined : json['username'], }; } export function ApiUserDTOToJSON(json: any): ApiUserDTO { return ApiUserDTOToJSONTyped(json, false); } export function ApiUserDTOToJSONTyped(value?: ApiUserDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'email': value['email'], 'firstName': value['firstName'], 'lastName': value['lastName'], 'password': value['password'], 'realm': value['realm'], 'username': value['username'], }; }