Transaction.fromJson constructor

Transaction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Transaction.fromJson(Map<String, dynamic> json) {
  id = json['id'] as int?;
  merchantId = json['merchant_id']  as int?;
  userId = json['user_id'] as int?;
  applicationId = json['application_id'] as int?;
  currencyCode = json['currency_code'];
  amount = json['amount'] as int?;
  type = json['type'] as int?;
  isWaiting = json['is_waiting'] as bool?;
  isCanceled = json['is_canceled'] as bool?;
  isApprouved = json['is_approuved'] as bool?;
  canceledAt = json['canceled_at'] as String?;
  approuvedAt = json['approuved_at'] as String?;
  status = json['status'] as String?;
  deletedAt = json['deleted_at'] as String?;
  createdAt = json['created_at'] as String?;
  updatedAt = json['updated_at'] as String?;
  reference = json['reference'] as String?;
  designation = json['designation'] as String?;
  clientReference = json['client_reference'] as String?;
  reason = json['reason'] as String?;
  notifUrl = json['notif_url'] as String?;
  errorMetaTransaction = json['error_meta_data'] as String?;
  buyerReference = json['buyer_reference'] as String?;
  buyerName = json['buyer_name'] as String?;
  orangePaymentUrl = json['orange_payment_url'] as String?;
  orangePayToken = json['orange_pay_token'] as String?;
  paymentMethodId = json['payment_method_id'] as int?;
  paymentMethodCode = json['payment_method_code'] as String?;
  phoneNumber = json['phone_number'] as String?;
  isInitiated = json['is_initiated'] as bool?;
  isCompleted = json['is_completed'] as bool?;
}