class MemberInfo {
  String id;
  String name;
  String cardNumber;
  String expireDate;
  String promotionCode;
  String tier;
  String balance;

  MemberInfo(
      {required this.id,
      required this.name,
      required this.cardNumber,
      required this.expireDate,
      required this.promotionCode,
      required this.tier,
      required this.balance});

  factory MemberInfo.getInfo(Map<String, dynamic> json) {
    return MemberInfo(
        id: json['id'],
        name: json['name'],
        cardNumber: json['card_number'],
        expireDate: json['expire_date'],
        promotionCode: json['promotion_code'],
        tier: json['tier_name'],
        balance: json['balance']);
  }
}
