customer_target_group_model.dart 730 Bytes
class CustomerTargetGroupModel {
  String? id;
  String? sellerid;
  String? name;
  String? status;
  String? isDefault;
  String? cdate;
  String? udate;
  bool isSelected;

  CustomerTargetGroupModel({
    this.id,
    this.sellerid,
    this.name,
    this.status,
    this.isDefault,
    this.cdate,
    this.udate,
    this.isSelected = false,
  });

  factory CustomerTargetGroupModel.fromJson(Map<String, dynamic> json) {
    return CustomerTargetGroupModel(
      id: json['id'],
      sellerid: json['sellerid'],
      name: json['name'],
      status: json['status'],
      isDefault: json['is_default'],
      cdate: json['cdate'],
      udate: json['udate'],
      isSelected: json['is_default'] == '1',
    );
  }
}