PandoraApiResponse.fail constructor

  1. @FreezedUnionValue('fail')
  2. @Implements<Exception>()
const PandoraApiResponse.fail({
  1. @JsonKey(name: 'code', fromJson: PandoraApiErrorCode.fromCode) required PandoraApiErrorCode code,
  2. @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;