dart_json_schema 0.0.1
dart_json_schema: ^0.0.1 copied to clipboard
A Dart/Flutter package that provides a simple @Field annotation for adding metadata to model fields and generates standard JSON schemas using a command-line tool.
example/lib/main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('JSON Schema Example'),
),
body: const Center(
child: Text('See the generated schemas in the schemas/ directory.'),
),
),
);
}
}