ashamp / jsontodartmodel Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
It does not accept texts on the text field, though the checkbox works
can u please update the converter to the latest dart version?
{
"id":"487349",
"name":"Pooja Bhaumik",
"score" : 45.0
}
会转换成
class SomeRootEntity {
/*
{
"id": "487349",
"name": "Pooja Bhaumik",
"score": 45
}
*/
String id;
String name;
int score;
SomeRootEntity({
this.id,
this.name,
this.score,
});
SomeRootEntity.fromJson(Map<String, dynamic> json) {
id = json["id"]?.toString();
name = json["name"]?.toString();
score = json["score"]?.toInt();
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data["id"] = id;
data["name"] = name;
data["score"] = score;
return data;
}
}
the url can't use
class MyModel {
{
final String appName;
final Int age;
}
{ "code": 0, "timestamp": 1577000512, "data": { "list": [ { "order_id": "4884556", "work_name": "汉水桥一期", "begin_time": "1576980507", "end_time": "1576982307", "type": "5", "employees": "WH11579", "employee_ids": "2998", "address": "营房前街35号(上面机箱)飞线营房前街24号1楼", "location": "汉水桥一期", "extra": "上不了网", "state": "1011", "review": "0", "speeded": "0", "operator": "2891", "complain": "0", "complain_level": "0", "helped": null, "help_order": null, "link_order_id": "e71d1dd0-06df-40c6-970c-4af903494fd3", "attendance": "0" }, { "order_id": "4885039", "work_name": "汉水桥一期", "begin_time": "1576988223", "end_time": "1576990023", "type": "5", "employees": "WH11579", "employee_ids": "2998", "address": "武汉市硚口区解放大道494号4楼左边", "location": "汉水桥一期", "extra": "用户反映有一些网站不能打开 搜狐网积分兑换 兑换不了 用手机流量可以正常打开 要求联系处理 联系来电", "state": "1011", "review": "0", "speeded": "0", "operator": "2891", "complain": "0", "complain_level": "0", "helped": null, "help_order": null, "link_order_id": "7880851e-9d07-413a-ac17-bf7803625431", "attendance": "0" }, { "order_id": "4885022", "work_name": "硚口汉水桥私房", "begin_time": "1576988972", "end_time": "1576990772", "type": "5", "employees": "WH11579", "employee_ids": "2998", "address": "营房一街47号5楼", "location": "硚口汉水桥私房", "extra": "故障定位:ONU设备断电! 网络断,上不了网,监控提示红叉,联系来电 \r\n用户状态:用户离线;Bras时间:2019-12-22T11:42:18", "state": "1011", "review": "0", "speeded": "0", "operator": "2891", "complain": "0", "complain_level": "0", "helped": null, "help_order": null, "link_order_id": "c0ba4f9e-817d-4ccc-8ed4-52dc5ab52a30", "attendance": "0" }, { "order_id": "4885204", "work_name": "汉水桥一期", "begin_time": "1576994455", "end_time": "1576995355", "type": "6", "employees": "WH11579", "employee_ids": "2998", "address": "营房三街19号301", "location": "汉水桥一期", "extra": "现在联系上门续费100m 1200 三年 用户过一个小时要出去 尽快联系上门 【电销订单】 套餐名称:续费, 员工端产品100M|36个月|标准资费|1; , 金额:1200.00, 付款方式:现金, 联系电话:, 装机电话:13554356569, 是否上门:无, (电销派单: ransen MsgId:419734 )", "state": "1011", "review": "0", "speeded": "0", "operator": "-1", "complain": "0", "complain_level": "0", "helped": null, "help_order": null, "link_order_id": "6f074ed7-231a-46f7-9f1a-1b93f8776507", "attendance": "0" } ] } }
when i opened the URL i got this error
Load JSONEditor faild, please try reload
/// code
{
"RELAX_MEDITATION": [
{
"total_songs": "",
"id": "",
"mp3_type": "",
"mp3_title": "",
"mp3_url": "",
"mp3_description": "",
"for_kids": "",
"total_rate": "",
"total_views": "",
"rate_avg": "",
"total_download": "",
"cid": "",
"category_name": "",
"category_image": "",
"category_image_thumb": ""
},
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.