1
0
forked from baron/baron-sso

Merge remote-tracking branch 'origin/main'

This commit is contained in:
Lectom C Han
2026-02-03 08:34:46 +09:00
16 changed files with 636 additions and 91 deletions

View File

@@ -38,6 +38,7 @@ class UserProfile {
final String department;
final String affiliationType;
final String companyCode;
final Map<String, dynamic>? metadata;
final Tenant? tenant;
UserProfile({
@@ -48,6 +49,7 @@ class UserProfile {
required this.department,
required this.affiliationType,
required this.companyCode,
this.metadata,
this.tenant,
});
@@ -60,6 +62,7 @@ class UserProfile {
department: json['department'] ?? '',
affiliationType: json['affiliationType'] ?? '',
companyCode: json['companyCode'] ?? '',
metadata: json['metadata'] != null ? Map<String, dynamic>.from(json['metadata']) : null,
tenant: json['tenant'] != null ? Tenant.fromJson(json['tenant']) : null,
);
}
@@ -73,6 +76,7 @@ class UserProfile {
'department': department,
'affiliationType': affiliationType,
'companyCode': companyCode,
'metadata': metadata,
'tenant': tenant?.toJson(),
};
}