toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'is_active': isActive,
      'current_completes': currentCompletes,
      'bonus_window_end_at': bonusWindowEndAt,
      'bonus_tiers': bonusTiers?.map((e) => e.toJson()).toList(),
      'error': error?.toJson(),
    };