PresenceEvent.fromEnvelope constructor
- Envelope envelope
Implementation
PresenceEvent.fromEnvelope(this.envelope)
: action = PresenceActionExtension.fromString(
envelope.payload['action'] as String),
uuid = envelope.payload['uuid'] != null
? UUID(envelope.payload['uuid'])
: null,
occupancy = envelope.payload['occupancy'] as int;