-
Notifications
You must be signed in to change notification settings - Fork 2
/
models.jsonc
32 lines (31 loc) · 1.46 KB
/
models.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// GENERATED BY JSON TO DART MODEL
[
// Useful links to work with this file:
// About jsonc: https://github.com/onury/jsonc
// Try jsonc: https://komkom.github.io
//
// To configure generator, go to Settings/Extensions/JSON To Dart Model
//
// Add your json objects here separated by commas.
// Note that you add class names to each object with key "__className":
// And avoid duplicate class names in this list for best results.
// FOR EXAMPLE:
/*
// Uncomment this to test and run builder with Shift + Ctrl + Alt + B
{
// To add enhancemed name to all generated files add new name after dot.
// Example: user_post.model. Result: user_post.model.dart
"__className": "user_post", // <- The base class name of the object.
// It's possible to override the default path with a new one by adding "__path" key.
// - it's useful if you want split your models to different workspace directories.
"__path": "/lib/models/user", // <- this is not required.
"userId": 1,
"id": 1, // To mark as required value, change "id" to "r@id".
"title": "Json To Dart Model", // To mark as a default value, change "title" to "d@title".
"body": "Json to Dart advanced..."
// Force new type by adding new one after dot.
// Note: it works only with not primitive values.
// "type": {...} // <- Example: "type.post_type". Result: PostType type;
}
*/
]