getJsonConstant method
Returns a const expression that evaluates to the JSON for this message.
usage
represents the .pb.dart file where the expression will be used.
Implementation
String getJsonConstant(FileGenerator usage) {
final name = '$classname\$json';
if (usage.protoFileUri == fileGen.protoFileUri) {
return name;
}
return '$fileImportPrefix.$name';
}