github.com/aeternity/aepp-sdk-go/v4@v4.0.1/swagguard/node/models/inline_response2001.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package models
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	strfmt "github.com/go-openapi/strfmt"
    10  
    11  	"github.com/go-openapi/swag"
    12  )
    13  
    14  // InlineResponse2001 inline response 200 1
    15  // swagger:model inline_response_200_1
    16  type InlineResponse2001 struct {
    17  
    18  	// height
    19  	Height uint64 `json:"height,omitempty"`
    20  }
    21  
    22  // Validate validates this inline response 200 1
    23  func (m *InlineResponse2001) Validate(formats strfmt.Registry) error {
    24  	return nil
    25  }
    26  
    27  // MarshalBinary interface implementation
    28  func (m *InlineResponse2001) MarshalBinary() ([]byte, error) {
    29  	if m == nil {
    30  		return nil, nil
    31  	}
    32  	return swag.WriteJSON(m)
    33  }
    34  
    35  // UnmarshalBinary interface implementation
    36  func (m *InlineResponse2001) UnmarshalBinary(b []byte) error {
    37  	var res InlineResponse2001
    38  	if err := swag.ReadJSON(b, &res); err != nil {
    39  		return err
    40  	}
    41  	*m = res
    42  	return nil
    43  }