generate static method
Implementation
static void generate(
IndentingWriter out, String classname, List<ProtobufField> fields) {
out.addBlock('enum $classname {', '}\n', () {
for (final field in fields) {
final name = oneofEnumMemberName(field.memberNames!.fieldName);
out.println('$name, ');
}
out.println('notSet');
});
}