Reason constructor

  1. @JsonSerializable(includeIfNull: false)
const Reason({
  1. required String reason,
  2. required String description,
  3. required String bucket,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Reason({
  required String
      reason, // ID or code? d.ts says 'Id of the Offer' which seems wrong. Assuming reason code.
  required String description,
  required String bucket,
}) = _Reason;