writeResp method

  1. @override
Future<void> writeResp()
override

Implementation

@override
Future<void> writeResp() async {
  headers.contentType = ContentType.json;
  write(jsonEncode(body));
}