Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
[TASK] Renamed generic data model
Browse files Browse the repository at this point in the history
- Deleted old unused secret file
  • Loading branch information
axellebot committed Jul 26, 2019
1 parent 5dce8f6 commit 057c78c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions lib/src/data/models/api_models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ abstract class _Envelop {

@JsonSerializable()
class DataEnvelop<T> extends _Envelop {
@_GenericListConverter()
@_GenericConverter()
T data;

DataEnvelop({
Expand All @@ -183,7 +183,7 @@ class DataEnvelop<T> extends _Envelop {

@JsonSerializable()
class DataArrayEnvelop<T> extends _Envelop {
@_GenericListConverter()
@_GenericConverter()
List<T> data;

int total;
Expand All @@ -203,8 +203,8 @@ class DataArrayEnvelop<T> extends _Envelop {

/// Example of model with GenericCollection
/// https://github.com/dart-lang/json_serializable/blob/ee2c5c788279af01860624303abe16811850b82c/example/lib/json_converter_example.dart
class _GenericListConverter<T> implements JsonConverter<T, Object> {
const _GenericListConverter();
class _GenericConverter<T> implements JsonConverter<T, Object> {
const _GenericConverter();

@override
T fromJson(Object json) {
Expand Down
8 changes: 4 additions & 4 deletions lib/src/data/models/api_models.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions secrets.json.dist

This file was deleted.

0 comments on commit 057c78c

Please sign in to comment.