toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'id': id,
  'shortText': shortText,
  if (longText != null) 'longText': longText,
  if (headerText != null) 'headerText': headerText,
  if (progress != null) 'progress': progress,
  if (tintColor != null) 'tintColor': tintColor,
  if (deepLink != null) 'deepLink': deepLink,
};