HeartbeatEvent constructor

HeartbeatEvent(
  1. dynamic event
)

Implementation

HeartbeatEvent(dynamic event) {
  if (event['location'] != null) {
    try {
      this.location = new Location(event['location']);
    } catch (e) {
      print(e.toString());
    }
  }
}