/* 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 ApiFirewallMetricsResultDTO */ export interface ApiFirewallMetricsResultDTO { /** * * @type {number} * @memberof ApiFirewallMetricsResultDTO */ firewallMetricsValue?: number; /** * * @type {Date} * @memberof ApiFirewallMetricsResultDTO */ latestUpdatedTime?: Date; } /** * Check if a given object implements the ApiFirewallMetricsResultDTO interface. */ export function instanceOfApiFirewallMetricsResultDTO(value: object): value is ApiFirewallMetricsResultDTO { return true; } export function ApiFirewallMetricsResultDTOFromJSON(json: any): ApiFirewallMetricsResultDTO { return ApiFirewallMetricsResultDTOFromJSONTyped(json, false); } export function ApiFirewallMetricsResultDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFirewallMetricsResultDTO { if (json == null) { return json; } return { 'firewallMetricsValue': json['firewallMetricsValue'] == null ? undefined : json['firewallMetricsValue'], 'latestUpdatedTime': json['latestUpdatedTime'] == null ? undefined : (new Date(json['latestUpdatedTime'])), }; } export function ApiFirewallMetricsResultDTOToJSON(json: any): ApiFirewallMetricsResultDTO { return ApiFirewallMetricsResultDTOToJSONTyped(json, false); } export function ApiFirewallMetricsResultDTOToJSONTyped(value?: ApiFirewallMetricsResultDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'firewallMetricsValue': value['firewallMetricsValue'], 'latestUpdatedTime': value['latestUpdatedTime'] == null ? value['latestUpdatedTime'] : value['latestUpdatedTime'].toISOString(), }; }