toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      'promo_id': promoId,
      if (profile != null) 'profile': profile!.toJson(),
      if (schedule != null) 'schedule': schedule!.toJson(),
      if (activation != null) 'activation': activation!.toJson(),
      if (priority != null) 'priority': priority,
      if (customData != null) 'custom_data': customData!.toJson(),
    };