RevenueWithdrawalState.pending constructor

  1. @Assert.new('type == RevenueWithdrawalStateType.pending', 'type must be RevenueWithdrawalStateType.pending')
const RevenueWithdrawalState.pending({
  1. @JsonKey.new(name: 'type') @Default.new(RevenueWithdrawalStateType.pending) RevenueWithdrawalStateType type,
})

The withdrawal is in progress

Implementation

@Assert(
  'type == RevenueWithdrawalStateType.pending',
  'type must be RevenueWithdrawalStateType.pending',
)
const factory RevenueWithdrawalState.pending({
  /// Type of the revenue withdrawal state, must be "pending"
  @JsonKey(name: 'type')
  @Default(RevenueWithdrawalStateType.pending)
  RevenueWithdrawalStateType type,
}) = RevenueWithdrawalStatePending;