// Code generated by go-swagger; DO NOT EDIT.

package ops

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// GithubPullRequest github pull request
//
// swagger:model github.PullRequest
type GithubPullRequest struct {

	// author
	Author string `json:"author,omitempty"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// number
	Number int64 `json:"number,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// repo
	Repo string `json:"repo,omitempty"`

	// state
	State string `json:"state,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

// Validate validates this github pull request
func (m *GithubPullRequest) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this github pull request based on context it is used
func (m *GithubPullRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *GithubPullRequest) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *GithubPullRequest) UnmarshalBinary(b []byte) error {
	var res GithubPullRequest
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
