/* tslint:disable */ /* eslint-disable */ /** * Tapis Workflows API * Create and manage pipelines * * The version of the OpenAPI document: 1.6.0 * Contact: cicsupport@tacc.utexas.edu * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface GitRepository */ export interface GitRepository { /** * * @type {string} * @memberof GitRepository */ url?: string; /** * * @type {string} * @memberof GitRepository */ branch?: string; } export function GitRepositoryFromJSON(json: any): GitRepository { return GitRepositoryFromJSONTyped(json, false); } export function GitRepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitRepository { if ((json === undefined) || (json === null)) { return json; } return { 'url': !exists(json, 'url') ? undefined : json['url'], 'branch': !exists(json, 'branch') ? undefined : json['branch'], }; } export function GitRepositoryToJSON(value?: GitRepository | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'url': value.url, 'branch': value.branch, }; }