TransactionModel class

A model class for transactions.

Annotations

Constructors

TransactionModel({required String transactionType, String? billingRefNo, String? paymentAmount, String? mobileNumberForEChargeSlip})
A model class for pine lab transactions. transactionType is the transaction type which is consumed as long value by the device. billingRefNo is the billing reference number. paymentAmount is the payment amount which is consumed as long value. mobileNumberForEChargeSlip is the mobile number for eChargeSlip.
const
TransactionModel.fromJson(String source)
create TransactionModel from json.
factory
TransactionModel.fromMap(Map<String, dynamic> map)
get TransactionModel from map.
factory

Properties

billingRefNo String?
billingRefNo is the billing reference number.
final
hashCode int
The hash code for this object.
no setteroverride
mobileNumberForEChargeSlip String?
mobileNumberForEChargeSlip is the mobile number for eChargeSlip.
final
paymentAmount String?
paymentAmount is the payment amount which is consumed as long value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionType String
transactionType is the transaction type which is consumed as long value by the device.
final

Methods

copyWith({String? transactionType, String? billingRefNo, String? paymentAmount, String? mobileNumberForEChargeSlip}) TransactionModel
copy and create new instance of TransactionModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
convert TransactionModel to json.
toMap() Map<String, dynamic>
convert TransactionModel to map.
toString() String
A string representation of this object.
override

Operators

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