extensionBuilder function
Builder
extensionBuilder(
- BuilderOptions options
Returns an instance of SharedPartBuilder
.
JsonGenerator
builds an extension providing the functions:toJson
,toJsonEncoded
andfromJson
.ValueGenerator
builds an extension providing enum value getters.
Implementation
Builder extensionBuilder(BuilderOptions options) {
return SharedPartBuilder([
ValueGenerator(),
JsonGenerator(),
], 'extension_builder');
}