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
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".