dart_gen library
Dart generation based on Schemake schemas.
From one or more Objects schemas, Dart classes and types can be generated. A class generated in this manner can have multiple features depending on the DartGeneratorOptions used, such as:
toString
==
operatorhashCode
toJson
fromJson
Classes
- DartCopyWithMethodGenerator
- DartEnumGeneratorOptions
- DartEqualsAndHashCodeMethodGenerator
- DartFloatRangeGeneratorOptions
- DartFromJsonMethodGenerator
- DartGeneratorOptions
- DartIntRangeGeneratorOptions
- DartNonBlankStringGeneratorOptions
- DartToJsonMethodGenerator
- DartToStringMethodGenerator
-
DartValidatorGenerationOptions<
V extends Validator> - GeneratorExtras
Mixins
Functions
-
generateDartClasses(
List< Objects> schemaTypes, {DartGeneratorOptions options = const DartGeneratorOptions()}) → StringBuffer - Generates Dart code for the given schema types.
-
schemaTypeString(
SchemaType< Object?> type, DartGeneratorOptions options) → String - Returns a String that represents the SchemaType in "Dart syntax".