json<T> method
Implementation
Future<void> json<T>(T data) async {
headers.contentType = ContentType.json;
write(jsonEncode(data));
await close();
}
Future<void> json<T>(T data) async {
headers.contentType = ContentType.json;
write(jsonEncode(data));
await close();
}