/*
* Signadot API
* API for Signadot Sandboxes
*
* OpenAPI spec version: 1.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.25
*
* Do not edit the class manually.
*
*/
import {ApiClient} from '../ApiClient';
/**
* The Branch model module.
* @module model/Branch
*/
export class Branch {
/**
* Constructs a new <code>Branch</code>.
* @alias module:model/Branch
* @class
*/
constructor() {
}
/**
* Constructs a <code>Branch</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Branch} obj Optional instance to populate.
* @return {module:model/Branch} The populated <code>Branch</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Branch();
if (data.hasOwnProperty('headCommit'))
obj.headCommit = ApiClient.convertToType(data['headCommit'], 'String');
if (data.hasOwnProperty('pullRequest'))
obj.pullRequest = ApiClient.convertToType(data['pullRequest'], 'Number');
if (data.hasOwnProperty('vcsName'))
obj.vcsName = ApiClient.convertToType(data['vcsName'], 'String');
if (data.hasOwnProperty('vcsRepo'))
obj.vcsRepo = ApiClient.convertToType(data['vcsRepo'], 'String');
if (data.hasOwnProperty('vcsType'))
obj.vcsType = ApiClient.convertToType(data['vcsType'], 'String');
}
return obj;
}
}
/**
* @member {String} headCommit
*/
Branch.prototype.headCommit = undefined;
/**
* @member {Number} pullRequest
*/
Branch.prototype.pullRequest = undefined;
/**
* @member {String} vcsName
*/
Branch.prototype.vcsName = undefined;
/**
* @member {String} vcsRepo
*/
Branch.prototype.vcsRepo = undefined;
/**
* @member {String} vcsType
*/
Branch.prototype.vcsType = undefined;