toMap method

Map<String, dynamic> toMap()

Only the labels the host actually set are sent, so an unset label stays unset natively rather than arriving as an explicit null the parsers would have to distinguish.

Implementation

Map<String, dynamic> toMap() {
  _warnIfCountPlaceholderMissing();
  return {
    if (bell != null) 'bell': bell,
    if (bellWithUnreadCount != null) 'bellWithUnreadCount': bellWithUnreadCount,
    if (loadingIndicator != null) 'loadingIndicator': loadingIndicator,
    if (emptyState != null) 'emptyState': emptyState,
  };
}