refactor: update Top Professionals section to source agent and lender data from CMS content and adjust CTA button text.

This commit is contained in:
pradeepkumar
2026-03-14 23:26:56 +05:30
parent 29c9277bb7
commit 630fedc78a
3 changed files with 96 additions and 164 deletions

View File

@@ -37,7 +37,7 @@ class TopProfessionalsContent {
const TopProfessionalsContent({
this.title = '"Meet top real estate professionals"',
this.ctaText = 'Discover 5,000+ Top Real Estate Agents in Our Network.',
this.ctaButtonText = 'Browse Experts',
this.ctaButtonText = 'See All Agents',
this.agents = const [],
this.lenders = const [],
});
@@ -47,7 +47,7 @@ class TopProfessionalsContent {
title: json['title'] as String? ?? '"Meet top real estate professionals"',
ctaText: json['ctaText'] as String? ??
'Discover 5,000+ Top Real Estate Agents in Our Network.',
ctaButtonText: json['ctaButtonText'] as String? ?? 'Browse Experts',
ctaButtonText: json['ctaButtonText'] as String? ?? 'See All Agents',
agents: (json['agents'] as List<dynamic>?)
?.map((e) =>
ProfessionalItem.fromJson(e as Map<String, dynamic>))