codegen library
Turns a RustaBase schema (the list returned by GET /api/collections)
into Dart model classes. Pure: no network or file access, so it can be
used from build scripts and tests.
Functions
-
camelCase(
String name) → String -
created_at->createdAt; Dart keywords get a trailing_. -
generateDartTypes(
List collections, {bool includeSystem = false}) → String -
Generates the Dart source for
collections. System tables are skipped unlessincludeSystemis true. -
pascalCase(
String name) → String -
blog_posts->BlogPosts.