// Code generated by protoc-json-shim. DO NOT EDIT.
package meshv2beta1

import (
	protojson "google.golang.org/protobuf/encoding/protojson"
)

// MarshalJSON is a custom marshaler for ConnectionConfig
func (this *ConnectionConfig) MarshalJSON() ([]byte, error) {
	str, err := ConnectionMarshaler.Marshal(this)
	return []byte(str), err
}

// UnmarshalJSON is a custom unmarshaler for ConnectionConfig
func (this *ConnectionConfig) UnmarshalJSON(b []byte) error {
	return ConnectionUnmarshaler.Unmarshal(b, this)
}

// MarshalJSON is a custom marshaler for InboundConnectionsConfig
func (this *InboundConnectionsConfig) MarshalJSON() ([]byte, error) {
	str, err := ConnectionMarshaler.Marshal(this)
	return []byte(str), err
}

// UnmarshalJSON is a custom unmarshaler for InboundConnectionsConfig
func (this *InboundConnectionsConfig) UnmarshalJSON(b []byte) error {
	return ConnectionUnmarshaler.Unmarshal(b, this)
}

var (
	ConnectionMarshaler   = &protojson.MarshalOptions{}
	ConnectionUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
