add droplet.MarshalJSON()

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-30 11:01:42 -05:00
parent ae69eafee5
commit 42e34f41cf
1 changed files with 4 additions and 0 deletions

View File

@ -382,6 +382,10 @@ func (d *Droplets) MarshalJSON() ([]byte, error) {
return protojson.Marshal(d) return protojson.Marshal(d)
} }
func (d *Droplet) MarshalJSON() ([]byte, error) {
return protojson.Marshal(d)
}
func (e *Events) MarshalJSON() ([]byte, error) { func (e *Events) MarshalJSON() ([]byte, error) {
return protojson.Marshal(e) return protojson.Marshal(e)
} }