encodeSemanticsTag static method

Map<String, dynamic>? encodeSemanticsTag(
  1. SemanticsTag? value
)

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 result;
}