@@ -27,7 +27,7 @@ class ApiService {
2727
2828 var statusCode = response.statusCode;
2929
30- if (statusCode == HttpStatus .ok ) {
30+ if (statusCode == HttpStatus .OK ) {
3131 Map <String , dynamic > responseBody = json.decode (body);
3232 completer.complete (TransactionApiResponse .fromMap (responseBody));
3333 } else {
@@ -52,7 +52,7 @@ class ApiService {
5252 var body = response.body;
5353
5454 var statusCode = response.statusCode;
55- if (statusCode == HttpStatus .ok ) {
55+ if (statusCode == HttpStatus .OK ) {
5656 Map <String , dynamic > responseBody = json.decode (body);
5757 completer.complete (TransactionApiResponse .fromMap (responseBody));
5858 } else {
@@ -73,7 +73,7 @@ class ApiService {
7373 http.Response response = await http.get (url, headers: headers);
7474 var body = response.body;
7575 var statusCode = response.statusCode;
76- if (statusCode == HttpStatus .ok ) {
76+ if (statusCode == HttpStatus .OK ) {
7777 Map <String , dynamic > responseBody = json.decode (body);
7878 completer.complete (TransactionApiResponse .fromMap (responseBody));
7979 } else {
0 commit comments