From 9d5e4ba9fd740ef89f1005231e9357665088520e Mon Sep 17 00:00:00 2001
From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr>
Date: Tue, 19 Nov 2024 18:00:15 +0100
Subject: [PATCH] Re-arrange struct

---
 z2m.go | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/z2m.go b/z2m.go
index 0c63d08..a9667f0 100644
--- a/z2m.go
+++ b/z2m.go
@@ -25,17 +25,17 @@ type (
 
 // JSON structures for the z2m device from /bridge/devices
 type Z2MDevice struct {
-	Definition struct {
-		Vendor  string   `json:"vendor"`
-		Model   string   `json:"model"`
-		Exposes []Expose `json:"exposes"`
-	} `json:"definition"`
+	Gateway      *Gateway
 	Type         string `json:"type"`
 	IeeeAddress  string `json:"ieee_address"`
 	SwBuildID    string `json:"software_build_id"`
 	FriendlyName string `json:"friendly_name"`
-	XAALDevices  []XAALDeviceInterface
-	Gateway      *Gateway
+	Definition   struct {
+		Vendor  string   `json:"vendor"`
+		Model   string   `json:"model"`
+		Exposes []Expose `json:"exposes"`
+	} `json:"definition"`
+	XAALDevices []XAALDeviceInterface
 }
 
 type Expose struct {
-- 
GitLab