// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'transaction_model.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

TransactionModel _$TransactionModelFromJson(Map<String, dynamic> json) =>
    TransactionModel(
      id: json['id'] as String?,
      createdAt: _$JsonConverterFromJson<String, DateTime>(
        json['createdAt'],
        const DateTimeJsonConverter().fromJson,
      ),
      userId: json['userId'] as String,
      workspaceId: json['workspaceId'] as String,
      batchId: json['batchId'] as String?,
      trace: json['trace'] as String,
      amount: const DecimalJsonConverter().fromJson(json['amount'] as num),
      charge: const DecimalJsonConverter().fromJson(json['charge'] as num),
      gatewayCharge: const DecimalJsonConverter().fromJson(
        json['gatewayCharge'] as num,
      ),
      tax: const DecimalJsonConverter().fromJson(json['tax'] as num),
      totalAmount: const DecimalJsonConverter().fromJson(
        json['totalAmount'] as num,
      ),
      reference: json['reference'] as String,
      paymentProcessorLabel: json['paymentProcessorLabel'] as String,
      integrationProcessorLabel: json['integrationProcessorLabel'] as String?,
      confirmationProcessorLabel: json['confirmationProcessorLabel'] as String?,
      providerLabel: json['providerLabel'] as String?,
      debitPhone: json['debitPhone'] as String,
      debitCurrency: json['debitCurrency'] as String,
      debitRef: json['debitRef'] as String?,
      creditPhone: json['creditPhone'] as String?,
      creditAccount: json['creditAccount'] as String?,
      creditRef: json['creditRef'] as String?,
      billClientId: json['billClientId'] as String?,
      billName: json['billName'] as String?,
      paymentProcessorName: json['paymentProcessorName'] as String,
      providerImage: json['providerImage'] as String?,
      paymentProcessorImage: json['paymentProcessorImage'] as String?,
      confirmationStatus: json['confirmationStatus'] as String,
      paymentStatus: json['paymentStatus'] as String?,
      integrationStatus: json['integrationStatus'] as String?,
      pollingStatus: json['pollingStatus'] as String?,
      orderId: json['orderId'] as String?,
      orderTrace: json['orderTrace'] as String?,
      orderTransactionTrace: json['orderTransactionTrace'] as String?,
      erpSalesRef: json['erpSalesRef'] as String?,
      erpSalesPaymentRef: json['erpSalesPaymentRef'] as String?,
      workflowId: (json['workflowId'] as num).toInt(),
      type: json['type'] as String?,
      authType: json['authType'] as String?,
      responseCode: json['responseCode'] as String?,
      status: json['status'] as String?,
      errorMessage: json['errorMessage'] as String?,
      billProductName: json['billProductName'] as String?,
      creditName: json['creditName'] as String?,
      creditEmail: json['creditEmail'] as String?,
      productUid: json['productUid'] as String?,
      targetUrl: json['targetUrl'] as String?,
      additionalData: const AdditionalDataJsonConverter().fromJson(
        json['additionalData'] as List?,
      ),
    );

Map<String, dynamic> _$TransactionModelToJson(
  TransactionModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'createdAt': _$JsonConverterToJson<String, DateTime>(
    instance.createdAt,
    const DateTimeJsonConverter().toJson,
  ),
  'userId': instance.userId,
  'workspaceId': instance.workspaceId,
  'batchId': instance.batchId,
  'trace': instance.trace,
  'amount': const DecimalJsonConverter().toJson(instance.amount),
  'charge': const DecimalJsonConverter().toJson(instance.charge),
  'gatewayCharge': const DecimalJsonConverter().toJson(instance.gatewayCharge),
  'tax': const DecimalJsonConverter().toJson(instance.tax),
  'totalAmount': const DecimalJsonConverter().toJson(instance.totalAmount),
  'reference': instance.reference,
  'paymentProcessorLabel': instance.paymentProcessorLabel,
  'integrationProcessorLabel': instance.integrationProcessorLabel,
  'confirmationProcessorLabel': instance.confirmationProcessorLabel,
  'providerLabel': instance.providerLabel,
  'debitPhone': instance.debitPhone,
  'debitCurrency': instance.debitCurrency,
  'debitRef': instance.debitRef,
  'creditPhone': instance.creditPhone,
  'creditAccount': instance.creditAccount,
  'creditRef': instance.creditRef,
  'billClientId': instance.billClientId,
  'billName': instance.billName,
  'paymentProcessorName': instance.paymentProcessorName,
  'providerImage': instance.providerImage,
  'paymentProcessorImage': instance.paymentProcessorImage,
  'confirmationStatus': instance.confirmationStatus,
  'paymentStatus': instance.paymentStatus,
  'integrationStatus': instance.integrationStatus,
  'pollingStatus': instance.pollingStatus,
  'orderId': instance.orderId,
  'orderTrace': instance.orderTrace,
  'orderTransactionTrace': instance.orderTransactionTrace,
  'erpSalesRef': instance.erpSalesRef,
  'erpSalesPaymentRef': instance.erpSalesPaymentRef,
  'workflowId': instance.workflowId,
  'type': instance.type,
  'authType': instance.authType,
  'responseCode': instance.responseCode,
  'status': instance.status,
  'errorMessage': instance.errorMessage,
  'billProductName': instance.billProductName,
  'creditName': instance.creditName,
  'creditEmail': instance.creditEmail,
  'productUid': instance.productUid,
  'targetUrl': instance.targetUrl,
  'additionalData': const AdditionalDataJsonConverter().toJson(
    instance.additionalData,
  ),
};

Value? _$JsonConverterFromJson<Json, Value>(
  Object? json,
  Value? Function(Json json) fromJson,
) => json == null ? null : fromJson(json as Json);

Json? _$JsonConverterToJson<Json, Value>(
  Value? value,
  Json? Function(Value value) toJson,
) => value == null ? null : toJson(value);
