class Author {
  Author({
      List<AuthorData>? authorData,}){
    _authorData = authorData;
}

  Author.fromJson(dynamic json) {
    if (json['data'] != null) {
      _authorData = [];
      json['data'].forEach((v) {
        _authorData?.add(AuthorData.fromJson(v));
      });
    }
  }
  List<AuthorData>? _authorData;
Author copyWith({  List<AuthorData>? authorData,
}) => Author(  authorData: authorData ?? _authorData,
);
  List<AuthorData>? get authorData => _authorData;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_authorData != null) {
      map['data'] = _authorData?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// id : 2
/// name : "Agent rumon"
/// slug : "8lvWTajtP35423"
/// email : "agent@mail.com"
/// type : "manager"
/// phone : "+1 (291) 762-3566"
/// genders : "Male"
/// avatar : "http://localhost/news_dashboard/public/uploads/user/4736.jpg"
/// loginTime : "3 weeks ago"
/// facebookLink : null
/// protfolioLink : null
/// linkdinLink : null
/// instagramLink : null
/// twitterLink : null
/// youtubeLink : null
/// designation : null
/// department : null
/// bio : "this is natoks all of this"
/// address : null
/// city : null
/// country : null

class AuthorData {
  AuthorData({
      num? id, 
      String? name, 
      String? slug, 
      String? email, 
      String? type, 
      String? phone, 
      String? genders, 
      String? avatar, 
      String? loginTime, 
      dynamic facebookLink, 
      dynamic protfolioLink, 
      dynamic linkdinLink, 
      dynamic instagramLink, 
      dynamic twitterLink, 
      dynamic youtubeLink, 
      dynamic designation, 
      dynamic department,
      int? randomNumber,
      String? bio, 
      dynamic address, 
      dynamic city, 
      dynamic country,}){
    _id = id;
    _name = name;
    _randomNumber = randomNumber;
    _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;
}

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

}