Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lejard-h committed Feb 16, 2019
1 parent 1d9088a commit 11be125
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chopper/lib/src/base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ChopperClient {
if (withConverter == null) return response;

final converted = await withConverter.convertResponse<ToDecode>(response);

if (converted == null) {
throw Exception("No converter found for type $ToDecode");
}
Expand Down
1 change: 1 addition & 0 deletions example/bin/main_built_value.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class BuiltValueConverter extends JsonConverter {
dynamic _decode<T>(entity) {
print(entity);
print(entity.runtimeType);

/// handle case when we want to access to Map<String, dynamic> directly
/// getResource or getMapResource
/// Avoid dynamic or unconverted value, this could lead to several issues
Expand Down
2 changes: 1 addition & 1 deletion example/lib/built_value_serializers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ part 'built_value_serializers.g.dart';
Resource,
ResourceError,
])
final Serializers serializers = _$serializers;
final Serializers serializers = _$serializers;
2 changes: 1 addition & 1 deletion example/lib/jaguar_serializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ abstract class MyService extends ChopperService {
@Post()
Future<Response<Resource>> newResource(@Body() Resource resource,
{@Header() String name});
}
}
2 changes: 1 addition & 1 deletion example/lib/json_serializable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ abstract class MyService extends ChopperService {
@Post()
Future<Response<Resource>> newResource(@Body() Resource resource,
{@Header() String name});
}
}

0 comments on commit 11be125

Please sign in to comment.