type property

UpdateType get type

Gets the type of the update event.

Implementation

UpdateType get type => UpdateType.values.firstWhere(
      (element) => element.name == data['type'],
      // ignore: missing_whitespace_between_adjacent_strings
      orElse: () => UpdateType.unknown_event,
    );