Map<String, dynamic> toMap() { return <String, dynamic>{ 'deviceId': ?deviceId, 'globalNetworkId': globalNetworkId, 'tags': ?tags, }; }