/**
 * This function takes a dictionary of lawyer records as input and prints the details of each lawyer.
 *
 * @param lawyerRecords Dictionary containing lawyer records.
 */
fun printLawyerDetails(lawyerRecords: Map<String, Map<String, Any>>) {

    for ((lawyerName, lawyerData) in lawyerRecords) {
        println("Lawyer name: $lawyerName")
        println("Lawyer's Address: ${lawyerData["address"]}")
        println("Lawyer's Phone Number: ${lawyerData["phone_number"]}")
        println("Lawyer's Court Cases:")

        for ((caseNumber, caseDetails) in lawyerData["court_cases"] as Map<String, Map<String, String>>) {
            println("Case Number: $caseNumber")
            println("Plaintiff: ${caseDetails["plaintiff"]}")
            println("Defendant: ${caseDetails["defendant"]}")
        }
    }
}
/**
 * This function takes a dictionary of lawyer records as input and prints the details of each lawyer.
 *
 * @param lawyerRecords Dictionary containing lawyer records.
 */
fun printLawyerDetails(lawyerRecords: Map<String, Map<String, Any>>) {
/**
 * This function takes a dictionary of lawyer records as input and prints the details of each lawyer.
 *
 * @param lawyerRecords Dictionary containing lawyer records.
 */
fun printLawyerDetails(lawyerRecords: Map<String, Map<String, Any>>) {

    for ((lawyerName, lawyerData) in lawyerRecords) {
        println("Lawyer name: $lawyerName")
        println("Lawyer's Address: ${lawyerData["address"]}")
        println("Lawyer's Phone Number: ${lawyerData["phone_number"]}")
        println("Lawyer's Court Cases:")

        for ((caseNumber, caseDetails) in lawyerData["court_cases"] as Map<String, Map<String, String>>) {
            println("Case Number: $caseNumber")
            println("Plaintiff: ${caseDetails["plaintiff"]}")
            println("Defendant: ${caseDetails["defendant"]}")
        }
    }
}