func (m *DecCoin) UnmarshalBinary(b []byte) error {
	var res DecCoin
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package models
import (
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)
type DecCoin struct {
	Amount string `json:"amount,omitempty"`
	Denom string `json:"denom,omitempty"`
}
func (m *DecCoin) Validate(formats strfmt.Registry) error {
	return nil
}
func (m *DecCoin) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}