ClientPresence.from constructor

ClientPresence.from({
  1. required dynamic payload,
})

Implementation

factory ClientPresence.from({ required dynamic payload }) {
  return ClientPresence(
    payload['name'],
    payload['type'],
    payload['url'],
    payload['createdAt'],
    payload['timestamps'],
    payload['application_id'],
    payload['details'],
    payload['state'],
    payload['flags']
  );
}