// MarshalJSON serializes this device as text
MarshalJSON serializes this device as text
// MarshalJSON serializes this device as text
func (r Device) MarshalJSON() ([]byte, error) {
	type serializableDevice Device
	device := serializableDevice(r)
	return json.Marshal(&device)
}
func ( r Device ) MarshalJSON ( ) ( [ ] byte , error ) { type serializableDevice Device device := serializableDevice ( r ) return json . Marshal ( & device ) }
MarshalJSON serializes this device as text
MarshalJSON serializes this device as text