RazorpaySubscriptionCreateRequestBody constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpaySubscriptionCreateRequestBody({
  1. required String plan_id,
  2. required int total_count,
  3. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? customer_notify,
  4. int? quantity,
  5. String? offer_id,
  6. int? start_at,
  7. int? expire_by,
  8. List<RazorpaySubscriptionAddonsItem>? addons,
  9. IMap? notes,
  10. ScheduleChangeAt? schedule_change_at,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpaySubscriptionCreateRequestBody({
  required String plan_id,
  required int total_count,
  @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? customer_notify,
  int? quantity,
  String? offer_id,
  int? start_at,
  int? expire_by,
  List<RazorpaySubscriptionAddonsItem>? addons,
  IMap<dynamic>? notes,
  ScheduleChangeAt?
      schedule_change_at, // Although usually for update, d.ts includes it here
}) = _RazorpaySubscriptionCreateRequestBody;