/// data : {"id":6,"name":"rumon","slug":"rumon1692623076","email":"rumon@mail.com","type":"user","phone":null,"genders":null,"avatar":"http://localhost/nansa_dashboard/public/images/avatar.jpg","loginTime":"1 দিন আগে","facebookLink":null,"protfolioLink":null,"linkdinLink":null,"instagramLink":null,"twitterLink":null,"youtubeLink":null,"designation":null,"department":null,"bio":null,"address":null,"city":null,"country":null}
/// totalTickets : 1
/// closeTickets : 0
/// activeTickets : 1

class User {
  User({
      Data? data, 
      num? totalTickets, 
      num? closeTickets, 
      num? activeTickets,}){
    _data = data;
    _totalTickets = totalTickets;
    _closeTickets = closeTickets;
    _activeTickets = activeTickets;
}

  User.fromJson(dynamic json) {
    _data = json['data'] != null ? Data.fromJson(json['data']) : null;
    _totalTickets = json['totalTickets'];
    _closeTickets = json['closeTickets'];
    _activeTickets = json['activeTickets'];
  }
  Data? _data;
  num? _totalTickets;
  num? _closeTickets;
  num? _activeTickets;
User copyWith({  Data? data,
  num? totalTickets,
  num? closeTickets,
  num? activeTickets,
}) => User(  data: data ?? _data,
  totalTickets: totalTickets ?? _totalTickets,
  closeTickets: closeTickets ?? _closeTickets,
  activeTickets: activeTickets ?? _activeTickets,
);
  Data? get data => _data;
  num? get totalTickets => _totalTickets;
  num? get closeTickets => _closeTickets;
  num? get activeTickets => _activeTickets;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_data != null) {
      map['data'] = _data?.toJson();
    }
    map['totalTickets'] = _totalTickets;
    map['closeTickets'] = _closeTickets;
    map['activeTickets'] = _activeTickets;
    return map;
  }

}

/// id : 6
/// name : "rumon"
/// slug : "rumon1692623076"
/// email : "rumon@mail.com"
/// type : "user"
/// phone : null
/// genders : null
/// avatar : "http://localhost/nansa_dashboard/public/images/avatar.jpg"
/// loginTime : "1 দিন আগে"
/// facebookLink : null
/// protfolioLink : null
/// linkdinLink : null
/// instagramLink : null
/// twitterLink : null
/// youtubeLink : null
/// designation : null
/// department : null
/// bio : null
/// address : null
/// city : null
/// country : null

class Data {
  Data({
      num? id, 
      String? name, 
      String? slug, 
      String? email, 
      String? type, 
      dynamic phone, 
      dynamic genders, 
      String? avatar, 
      String? loginTime, 
      dynamic facebookLink, 
      dynamic protfolioLink, 
      dynamic linkdinLink, 
      dynamic instagramLink, 
      dynamic twitterLink, 
      dynamic youtubeLink, 
      dynamic designation, 
      dynamic department, 
      dynamic bio, 
      dynamic address, 
      dynamic city, 
      dynamic country,}){
    _id = id;
    _name = name;
    _slug = slug;
    _email = email;
    _type = type;
    _phone = phone;
    _genders = genders;
    _avatar = avatar;
    _loginTime = loginTime;
    _facebookLink = facebookLink;
    _protfolioLink = protfolioLink;
    _linkdinLink = linkdinLink;
    _instagramLink = instagramLink;
    _twitterLink = twitterLink;
    _youtubeLink = youtubeLink;
    _designation = designation;
    _department = department;
    _bio = bio;
    _address = address;
    _city = city;
    _country = country;
}

  Data.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _slug = json['slug'];
    _email = json['email'];
    _type = json['type'];
    _phone = json['phone'];
    _genders = json['genders'];
    _avatar = json['avatar'];
    _loginTime = json['loginTime'];
    _facebookLink = json['facebookLink'];
    _protfolioLink = json['protfolioLink'];
    _linkdinLink = json['linkdinLink'];
    _instagramLink = json['instagramLink'];
    _twitterLink = json['twitterLink'];
    _youtubeLink = json['youtubeLink'];
    _designation = json['designation'];
    _department = json['department'];
    _bio = json['bio'];
    _address = json['address'];
    _city = json['city'];
    _country = json['country'];
  }
  num? _id;
  String? _name;
  String? _slug;
  String? _email;
  String? _type;
  dynamic _phone;
  dynamic _genders;
  String? _avatar;
  String? _loginTime;
  dynamic _facebookLink;
  dynamic _protfolioLink;
  dynamic _linkdinLink;
  dynamic _instagramLink;
  dynamic _twitterLink;
  dynamic _youtubeLink;
  dynamic _designation;
  dynamic _department;
  dynamic _bio;
  dynamic _address;
  dynamic _city;
  dynamic _country;
Data copyWith({  num? id,
  String? name,
  String? slug,
  String? email,
  String? type,
  dynamic phone,
  dynamic genders,
  String? avatar,
  String? loginTime,
  dynamic facebookLink,
  dynamic protfolioLink,
  dynamic linkdinLink,
  dynamic instagramLink,
  dynamic twitterLink,
  dynamic youtubeLink,
  dynamic designation,
  dynamic department,
  dynamic bio,
  dynamic address,
  dynamic city,
  dynamic country,
}) => Data(  id: id ?? _id,
  name: name ?? _name,
  slug: slug ?? _slug,
  email: email ?? _email,
  type: type ?? _type,
  phone: phone ?? _phone,
  genders: genders ?? _genders,
  avatar: avatar ?? _avatar,
  loginTime: loginTime ?? _loginTime,
  facebookLink: facebookLink ?? _facebookLink,
  protfolioLink: protfolioLink ?? _protfolioLink,
  linkdinLink: linkdinLink ?? _linkdinLink,
  instagramLink: instagramLink ?? _instagramLink,
  twitterLink: twitterLink ?? _twitterLink,
  youtubeLink: youtubeLink ?? _youtubeLink,
  designation: designation ?? _designation,
  department: department ?? _department,
  bio: bio ?? _bio,
  address: address ?? _address,
  city: city ?? _city,
  country: country ?? _country,
);
  num? get id => _id;
  String? get name => _name;
  String? get slug => _slug;
  String? get email => _email;
  String? get type => _type;
  dynamic get phone => _phone;
  dynamic get genders => _genders;
  String? get avatar => _avatar;
  String? get loginTime => _loginTime;
  dynamic get facebookLink => _facebookLink;
  dynamic get protfolioLink => _protfolioLink;
  dynamic get linkdinLink => _linkdinLink;
  dynamic get instagramLink => _instagramLink;
  dynamic get twitterLink => _twitterLink;
  dynamic get youtubeLink => _youtubeLink;
  dynamic get designation => _designation;
  dynamic get department => _department;
  dynamic get bio => _bio;
  dynamic get address => _address;
  dynamic get city => _city;
  dynamic get country => _country;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['slug'] = _slug;
    map['email'] = _email;
    map['type'] = _type;
    map['phone'] = _phone;
    map['genders'] = _genders;
    map['avatar'] = _avatar;
    map['loginTime'] = _loginTime;
    map['facebookLink'] = _facebookLink;
    map['protfolioLink'] = _protfolioLink;
    map['linkdinLink'] = _linkdinLink;
    map['instagramLink'] = _instagramLink;
    map['twitterLink'] = _twitterLink;
    map['youtubeLink'] = _youtubeLink;
    map['designation'] = _designation;
    map['department'] = _department;
    map['bio'] = _bio;
    map['address'] = _address;
    map['city'] = _city;
    map['country'] = _country;
    return map;
  }

}