PaymentMethod class abstract

Abstract class representing a payment method.

This class holds the common properties and methods for all payment methods.

Implementers

Constructors

PaymentMethod({required String id, required PaymentMethodTypes method})
Creates an instance of PaymentMethod.
PaymentMethod.fromMap(Map<String, dynamic> map)
Creates an instance of PaymentMethod from a map.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for the payment method.
final
method PaymentMethodTypes
The type of the payment method.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromType(Map<String, dynamic> map) PaymentMethod
Creates a PaymentMethod instance from the provided type.