decodeLabel function

String? decodeLabel(
  1. Object? value
)

Google's browser runtime reports an absent label as an empty string; its C and Python APIs report none, as the Dart API does.

Implementation

String? decodeLabel(Object? value) =>
    value is String && value.isNotEmpty ? value : null;