byTagAsString property

Map<String, FieldInfo> byTagAsString
final

Mapping from string representation of FieldInfo.tagNumbers to FieldInfos.

This map is used when parsing JSON messages generated by GeneratedMessage.writeToJson, which converts field tags to strings and uses those strings as JSON map keys. With this field we avoid parsing those strings to integers when parsing the generated maps.

Implementation

final Map<String, FieldInfo> byTagAsString = <String, FieldInfo>{};