RevenueWithdrawalState.failed constructor

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

The withdrawal failed and the transaction was refunded

Implementation

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