Skip to content

Commit

Permalink
Updates JsonResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb Batykov committed Dec 26, 2022
1 parent cafcc71 commit a42fdf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/http/response/result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ part of minerva_http;
class Result {
final int statusCode;

final dynamic body;
final Object? body;

final MinervaHttpHeaders? headers;

Expand Down Expand Up @@ -34,7 +34,7 @@ class InternalServerErrorResult extends Result {
}

class JsonResult extends Result {
JsonResult(Map<String, dynamic> json, {int? statusCode, super.headers})
JsonResult(Object? json, {int? statusCode, super.headers})
: super(statusCode: statusCode ?? 200, body: jsonEncode(json));

@override
Expand Down

0 comments on commit a42fdf6

Please sign in to comment.