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