toMap method
Implementation
Map<String, dynamic> toMap() => {
"company": company,
"username": username,
"supervisors": supervisors == null ? [] : List<dynamic>.from(supervisors!.map((x) => x)),
"subordinates": subordinates == null ? [] : List<dynamic>.from(subordinates!.map((x) => x)),
"permissions": permissions == null ? [] : List<dynamic>.from(permissions!.map((x) => x.toMap())),
};