copyWith method
Implementation
Session copyWith({
String? company,
String? username,
List<String>? supervisors,
List<String>? subordinates,
List<Permission>? permissions,
}) =>
Session(
company: company ?? this.company,
username: username ?? this.username,
supervisors: supervisors ?? this.supervisors,
subordinates: subordinates ?? this.subordinates,
permissions: permissions ?? this.permissions,
);