PurchaseResultModel extension type
Extension type that represents the result of a purchase operation.
Wraps a Map<String, dynamic> for result fields. Uses from_json_to_json for type-safe JSON handling.
Constructors
- PurchaseResultModel({PurchaseDetailsModel? details, ResultType type = ResultType.success, String? error})
-
factory
- PurchaseResultModel.failure(String error)
-
factory
- PurchaseResultModel.fromJson(dynamic json)
-
factory
- PurchaseResultModel.success(PurchaseDetailsModel details)
-
factory
Properties
Static Properties
- empty → PurchaseResultModel
-
final