Session.fromMap constructor
Implementation
factory Session.fromMap(Map<String, dynamic> json) => Session(
company: json["company"],
username: json["username"],
supervisors: json["supervisors"] == null ? [] : List<String>.from(json["supervisors"]!.map((x) => x)),
subordinates: json["subordinates"] == null ? [] : List<String>.from(json["subordinates"]!.map((x) => x)),
permissions: json["permissions"] == null
? []
: List<Permission>.from(json["permissions"]!.map((x) => Permission.fromMap(x))),
);