toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      'title': title,
      if (subtitle != null) 'subtitle': subtitle,
      if (progress != null) 'progress': progress,
      if (trailingText != null) 'trailingText': trailingText,
      if (leadingIcon != null) 'leadingIcon': leadingIcon,
      'wakeScreen': wakeScreen,
      if (staleMinutes != null) 'staleMinutes': staleMinutes,
      if (relevanceScore != null) 'relevanceScore': relevanceScore,
      if (color != null) 'color': color,
      'wantsPushToken': wantsPushToken,
    };