toJson method

Map<String, dynamic> toJson()

Convert the QrModel to a JSON representation.

Implementation

Map<String, dynamic> toJson() {
  return {
    'merchantID': merchantID,
    'mcc': mcc,
    'currency': currency,
    'amount': amount,
    'feesAmount': feesAmount,
    'countryCode': countryCode,
    'merchantName': merchantName,
    'merchantCity': merchantCity,
    'postalCode': postalCode,
    'ref1': ref1,
    'ref2': ref2,
    'additionalInfo': additionalInfo?.toJson(),
    'terminalId': terminalId,
    'qrTimeStamp': qrTimeStamp,
    'unreservedTemplate': unreservedTemplate,
    'merchantInformationLanguageTemplate':
        merchantInformationLanguageTemplate?.toJson(),
    'tipsConvenienceIndicator': tipsConvenienceIndicator,
  };
}