class TransactionModel {
  int transactionCount;
  String totalTransaction;
  List<ListTransactionModel> listTransaction;

  TransactionModel({
    required this.transactionCount,
    required this.totalTransaction,
    required this.listTransaction,
  });

  factory TransactionModel.json(Map<String, dynamic> json) {
    return TransactionModel(
      transactionCount: json['count_transaction'],
      totalTransaction: json['total_transaction'],
      listTransaction: json['transactions'],
    );
  }
}

class ListTransactionModel {
  String id;
  String brandId;
  String brandCode;
  String branchId;
  String branchCode;
  String bussinesDate;
  String total;

  ListTransactionModel({
    required this.id,
    required this.brandId,
    required this.brandCode,
    required this.branchId,
    required this.branchCode,
    required this.bussinesDate,
    required this.total,
  });

  factory ListTransactionModel.json(Map<String, dynamic> json) {
    return ListTransactionModel(
      id: json['id'],
      brandId: json['brand_id'],
      brandCode: json['brand_code'],
      branchId: json['branch_id'],
      branchCode: json['branch_code'],
      bussinesDate: json['business_date'],
      total: json['total'],
    );
  }
}
