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

package models

// 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"
)

// DNSResult Dns result
//
// swagger:model DnsResult
type DNSResult struct {

	// error
	Error string `json:"error,omitempty"`

	// response time ms
	ResponseTimeMs int64 `json:"response-time-ms,omitempty"`
}

// Validate validates this Dns result
func (m *DNSResult) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this Dns result based on context it is used
func (m *DNSResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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