LocalizedErrorMessage constructor

  1. @JsonSerializable(explicitToJson: true)
const LocalizedErrorMessage({
  1. @JsonKey(unknownEnumValue: FailureCode.Unknown) required FailureCode code,
  2. String? localizedMessage,
  3. String? message,
  4. String? stripeErrorCode,
  5. String? declineCode,
  6. String? type,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory LocalizedErrorMessage({
  /// The error code for example Cancelled
  @JsonKey(unknownEnumValue: FailureCode.Unknown) required FailureCode code,

  /// Localized error message if any
  String? localizedMessage,

  /// Generic untranslated error message.
  String? message,

  /// Stripe error code
  String? stripeErrorCode,

  /// Code in case payment is declined
  String? declineCode,

  /// Error type
  String? type,
}) = _LocalizedErrorMessage;