func (m *APIRecord) UnmarshalBinary(b []byte) error {
	var res APIRecord
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package models
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
)
type APIRecord struct {
	PTR bool `json:"PTR,omitempty"`
	TTL int32 `json:"TTL,omitempty"`
	Domain string `json:"domain,omitempty"`
	Expires int32 `json:"expires,omitempty"`
	ID string `json:"id,omitempty"`
	IP string `json:"ip,omitempty"`
	Type string `json:"type,omitempty"`
}
func (m *APIRecord) Validate(formats strfmt.Registry) error {
	var res []error
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *APIRecord) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}