PresenceEvent.fromEnvelope constructor

PresenceEvent.fromEnvelope(
  1. 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;