Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Apr 16, 2021
2 parents 87679dd + 354b228 commit c5b70e1
Show file tree
Hide file tree
Showing 45 changed files with 773 additions and 863 deletions.
1 change: 1 addition & 0 deletions lib/data/models/serializers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ part 'serializers.g.dart';
ImportRequest,
ImportRequestMapping,
UserTwoFactorResponse,
KanbanResponse,
])
final Serializers serializers =
(_$serializers.toBuilder()..addPlugin(StandardJsonPlugin())).build();
9 changes: 9 additions & 0 deletions lib/data/models/serializers.g.dart

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

38 changes: 38 additions & 0 deletions lib/data/models/task_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,44 @@ abstract class TaskItemResponse
_$taskItemResponseSerializer;
}

abstract class KanbanResponse
implements Built<KanbanResponse, KanbanResponseBuilder> {
factory KanbanResponse([void updates(KanbanResponseBuilder b)]) =
_$KanbanResponse;

KanbanResponse._();

@override
@memoized
int get hashCode;

KanbanResponseData get data;

static Serializer<KanbanResponse> get serializer =>
_$kanbanResponseSerializer;
}

abstract class KanbanResponseData
implements Built<KanbanResponseData, KanbanResponseDataBuilder> {
factory KanbanResponseData([void updates(KanbanResponseDataBuilder b)]) =
_$KanbanResponseData;

KanbanResponseData._();

@override
@memoized
int get hashCode;

@BuiltValueField(wireName: 'status_ids')
BuiltList<String> get statusIds;

@BuiltValueField(wireName: 'task_ids')
BuiltMap<String, BuiltList<String>> get taskIds;

static Serializer<KanbanResponseData> get serializer =>
_$kanbanResponseDataSerializer;
}

class TaskFields {
static const String number = 'number';
static const String rate = 'rate';
Expand Down
Loading

0 comments on commit c5b70e1

Please sign in to comment.