encodeSemanticsTag static method
Encodes the given SemanticsTag to a JSON representation. This produces the given the following structure:
{
"name": "<String>"
}
Implementation
static Map<String, dynamic>? encodeSemanticsTag(SemanticsTag? value) {
Map<String, dynamic>? result;
if (value != null) {
result = {
'name': value.name,
};
}
return _stripDynamicNull(result);
}