/// agent : true
/// anchor : true
/// bd : false
/// freightAgent : false

class SCUserIdentityRes {
  SCUserIdentityRes({
      bool? agent,
      bool? anchor,
      bool? bd,
      bool? admin,
      bool? superAdmin,
      bool? bdLeader,
      bool? superFreightAgent,
      bool? manager,
      bool? freightAgent,}){
    _agent = agent;
    _superFreightAgent = superFreightAgent;
    _anchor = anchor;
    _bd = bd;
    _manager = manager;
    _admin = admin;
    _superAdmin = superAdmin;
    _bdLeader = bdLeader;
    _freightAgent = freightAgent;
}

  SCUserIdentityRes.fromJson(dynamic json) {
    _agent = json['agent'];
    _anchor = json['anchor'];
    _bd = json['bd'];
    _superAdmin = json['superAdmin'];
    _bdLeader = json['bdLeader'];
    _superFreightAgent = json['superFreightAgent'];
    _admin = json['admin'];
    _freightAgent = json['freightAgent'];
    _manager = json['manager'];
  }
  bool? _agent;
  bool? _anchor;
  bool? _bd;
  bool? _admin;
  bool? _superAdmin;
  bool? _bdLeader;
  bool? _freightAgent;
  bool? _manager;
  bool? _superFreightAgent;
SCUserIdentityRes copyWith({  bool? agent,
  bool? anchor,
  bool? bd,
  bool? admin,
  bool? superAdmin,
  bool? manager,
  bool? superFreightAgent,
  bool? freightAgent,
}) => SCUserIdentityRes(  agent: agent ?? _agent,
  anchor: anchor ?? _anchor,
  bd: bd ?? _bd,
  superAdmin: superAdmin ?? _superAdmin,
  bdLeader: bdLeader ?? _bdLeader,
  admin: admin ?? _admin,
  manager: manager ?? _manager,
  superFreightAgent: superFreightAgent ?? _superFreightAgent,
  freightAgent: freightAgent ?? _freightAgent,
);
  bool? get agent => _agent;
  bool? get anchor => _anchor;
  bool? get bd => _bd;
  bool? get admin => _admin;
  bool? get manager => _manager;
  bool? get superAdmin => _superAdmin;
  bool? get bdLeader => _bdLeader;
  bool? get superFreightAgent => _superFreightAgent;
  bool? get freightAgent => _freightAgent;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['agent'] = _agent;
    map['anchor'] = _anchor;
    map['bd'] = _bd;
    map['manager'] = _manager;
    map['admin'] = _admin;
    map['superAdmin'] = _superAdmin;
    map['bdLeader'] = _bdLeader;
    map['superFreightAgent'] = _superFreightAgent;
    map['freightAgent'] = _freightAgent;
    return map;
  }

}