dart_json_schema 2.1.0
dart_json_schema: ^2.1.0 copied to clipboard
A Dart/Flutter package that provides simple @Field and @JsonSchema annotations for adding metadata to model fields and classes, and generates standard JSON schemas using a command-line tool.
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.'),
),
),
);
}
}