/*
 * Svix API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * API version: 1.1.1
 */

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package openapi

import (
	"encoding/json"
)

// SlackOauthPayloadIn struct for SlackOauthPayloadIn
type SlackOauthPayloadIn struct {
	Code string `json:"code"`
	RedirectUri string `json:"redirectUri"`
}

// NewSlackOauthPayloadIn instantiates a new SlackOauthPayloadIn object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewSlackOauthPayloadIn(code string, redirectUri string) *SlackOauthPayloadIn {
	this := SlackOauthPayloadIn{}
	this.Code = code
	this.RedirectUri = redirectUri
	return &this
}

// NewSlackOauthPayloadInWithDefaults instantiates a new SlackOauthPayloadIn object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewSlackOauthPayloadInWithDefaults() *SlackOauthPayloadIn {
	this := SlackOauthPayloadIn{}
	return &this
}

// GetCode returns the Code field value
func (o *SlackOauthPayloadIn) GetCode() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Code
}

// GetCodeOk returns a tuple with the Code field value
// and a boolean to check if the value has been set.
func (o *SlackOauthPayloadIn) GetCodeOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.Code, true
}

// SetCode sets field value
func (o *SlackOauthPayloadIn) SetCode(v string) {
	o.Code = v
}

// GetRedirectUri returns the RedirectUri field value
func (o *SlackOauthPayloadIn) GetRedirectUri() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.RedirectUri
}

// GetRedirectUriOk returns a tuple with the RedirectUri field value
// and a boolean to check if the value has been set.
func (o *SlackOauthPayloadIn) GetRedirectUriOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.RedirectUri, true
}

// SetRedirectUri sets field value
func (o *SlackOauthPayloadIn) SetRedirectUri(v string) {
	o.RedirectUri = v
}

func (o SlackOauthPayloadIn) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["code"] = o.Code
	}
	if true {
		toSerialize["redirectUri"] = o.RedirectUri
	}
	return json.Marshal(toSerialize)
}

type NullableSlackOauthPayloadIn struct {
	value *SlackOauthPayloadIn
	isSet bool
}

func (v NullableSlackOauthPayloadIn) Get() *SlackOauthPayloadIn {
	return v.value
}

func (v *NullableSlackOauthPayloadIn) Set(val *SlackOauthPayloadIn) {
	v.value = val
	v.isSet = true
}

func (v NullableSlackOauthPayloadIn) IsSet() bool {
	return v.isSet
}

func (v *NullableSlackOauthPayloadIn) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableSlackOauthPayloadIn(val *SlackOauthPayloadIn) *NullableSlackOauthPayloadIn {
	return &NullableSlackOauthPayloadIn{value: val, isSet: true}
}

func (v NullableSlackOauthPayloadIn) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableSlackOauthPayloadIn) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}


