Map<String, dynamic> toJson() { final devices = this.devices; return { if (devices != null) 'Devices': devices, }; }