PandoraApiResponse.fail constructor
- @FreezedUnionValue('fail')
- @Implements<
Exception> ()
- @JsonKey(name: 'code', fromJson: PandoraApiErrorCode.fromCode) required PandoraApiErrorCode code,
- @JsonKey(name: 'message') required String message,
Implementation
@FreezedUnionValue('fail')
@Implements<Exception>()
const factory PandoraApiResponse.fail({
@JsonKey(name: 'code', fromJson: PandoraApiErrorCode.fromCode)
required PandoraApiErrorCode code,
@JsonKey(name: 'message') required String message,
}) = PandoraApiException;