/* 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 ApiComponentProjectScmDetailsDTO */ export interface ApiComponentProjectScmDetailsDTO { /** * * @type {number} * @memberof ApiComponentProjectScmDetailsDTO */ commitsPerMonth?: number; /** * * @type {number} * @memberof ApiComponentProjectScmDetailsDTO */ uniqueDevsPerMonth?: number; } /** * Check if a given object implements the ApiComponentProjectScmDetailsDTO interface. */ export function instanceOfApiComponentProjectScmDetailsDTO(value: object): value is ApiComponentProjectScmDetailsDTO { return true; } export function ApiComponentProjectScmDetailsDTOFromJSON(json: any): ApiComponentProjectScmDetailsDTO { return ApiComponentProjectScmDetailsDTOFromJSONTyped(json, false); } export function ApiComponentProjectScmDetailsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentProjectScmDetailsDTO { if (json == null) { return json; } return { 'commitsPerMonth': json['commitsPerMonth'] == null ? undefined : json['commitsPerMonth'], 'uniqueDevsPerMonth': json['uniqueDevsPerMonth'] == null ? undefined : json['uniqueDevsPerMonth'], }; } export function ApiComponentProjectScmDetailsDTOToJSON(json: any): ApiComponentProjectScmDetailsDTO { return ApiComponentProjectScmDetailsDTOToJSONTyped(json, false); } export function ApiComponentProjectScmDetailsDTOToJSONTyped(value?: ApiComponentProjectScmDetailsDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'commitsPerMonth': value['commitsPerMonth'], 'uniqueDevsPerMonth': value['uniqueDevsPerMonth'], }; }