feat: add matchPercentage field to AgentProfile and display match badge in agent search results
This commit is contained in:
@@ -30,6 +30,7 @@ class AgentProfile {
|
||||
final List<String> legacySpecializations;
|
||||
final List<String> languages;
|
||||
final List<String> serviceAreas;
|
||||
final int? matchPercentage;
|
||||
|
||||
const AgentProfile({
|
||||
required this.id,
|
||||
@@ -61,6 +62,7 @@ class AgentProfile {
|
||||
this.legacySpecializations = const [],
|
||||
this.languages = const [],
|
||||
this.serviceAreas = const [],
|
||||
this.matchPercentage,
|
||||
});
|
||||
|
||||
String get fullName => '$firstName $lastName'.trim();
|
||||
@@ -279,6 +281,7 @@ class AgentProfile {
|
||||
?.map((e) => e.toString())
|
||||
.toList() ??
|
||||
const [],
|
||||
matchPercentage: json['matchPercentage'] as int?,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user