getMetadataAttendanceId static method
Implementation
static String getMetadataAttendanceId(String? metadata) {
if (metadata == null) return '';
try {
// Parse the JSON string
final Map<String, dynamic> jsonData = jsonDecode(metadata);
// Return the `meeting_attendance_id` if it exists, otherwise null
return jsonData['meeting_attendance_id'].toString();
} catch (e) {
// Handle JSON parsing errors
debugPrint('Error parsing JSON: $e');
return "";
}
}