/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * 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'; import type { Repository } from './Repository'; import { RepositoryFromJSON, RepositoryFromJSONTyped, RepositoryToJSON, RepositoryToJSONTyped, } from './Repository'; /** * * @export * @interface RepositoryInstallation */ export interface RepositoryInstallation { /** * * @type {string} * @memberof RepositoryInstallation */ type?: string; /** * * @type {string} * @memberof RepositoryInstallation */ accountLogin?: string; /** * * @type {string} * @memberof RepositoryInstallation */ accountAvatarUrl?: string | null; /** * * @type {Array} * @memberof RepositoryInstallation */ repositories?: Array; } /** * Check if a given object implements the RepositoryInstallation interface. */ export function instanceOfRepositoryInstallation(value: object): value is RepositoryInstallation { return true; } export function RepositoryInstallationFromJSON(json: any): RepositoryInstallation { return RepositoryInstallationFromJSONTyped(json, false); } export function RepositoryInstallationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepositoryInstallation { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'accountLogin': json['accountLogin'] == null ? undefined : json['accountLogin'], 'accountAvatarUrl': json['accountAvatarUrl'] == null ? undefined : json['accountAvatarUrl'], 'repositories': json['repositories'] == null ? undefined : ((json['repositories'] as Array).map(RepositoryFromJSON)), }; } export function RepositoryInstallationToJSON(json: any): RepositoryInstallation { return RepositoryInstallationToJSONTyped(json, false); } export function RepositoryInstallationToJSONTyped(value?: RepositoryInstallation | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'accountLogin': value['accountLogin'], 'accountAvatarUrl': value['accountAvatarUrl'], 'repositories': value['repositories'] == null ? undefined : ((value['repositories'] as Array).map(RepositoryToJSON)), }; }