我创建了一个包含“每日时间”类型的类,我想使用“ j son”进行“ GET”和“ post”操作,所以我该怎么做
final response = await http.post(url,
body: json.encode({
'goTime': post.fromTime,
'returnTime': post.toTime,
})
//"go time" and "return time "are" Time of day "datatype