StripeError<T> constructor

  1. @JsonSerializable(explicitToJson: true)
const StripeError<T>({
  1. @Default('Unknown error') String message,
  2. @JsonKey(fromJson: _dataFromJson, toJson: _dataToJson) required T code,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory StripeError({
  @Default('Unknown error') String message,
  @JsonKey(fromJson: _dataFromJson, toJson: _dataToJson) required T code,
}) = _StripeErrorGeneric;