traverseString function

String? traverseString(
  1. dynamic data,
  2. List<String> keys
)

Implementation

String? traverseString(dynamic data, List<String> keys) {
  final filteredString = traverseList(data, keys);
  if (filteredString.isEmpty) {
    return null;
  }
  return filteredString.first.toString();
}