-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Parent][MBL-14349] Additional course filtering (#780)
* [Parent][MBL-14349] Additional course filtering * fixed a woopsie * fixed a no-op
- Loading branch information
1 parent
60736fb
commit 14f70ba
Showing
17 changed files
with
1,000 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (C) 2020 - present Instructure, Inc. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 3 of the License. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import 'package:built_value/built_value.dart'; | ||
import 'package:built_value/serializer.dart'; | ||
|
||
part 'section.g.dart'; | ||
|
||
/// To have this built_value be generated, run this command from the project root: | ||
/// flutter pub run build_runner build --delete-conflicting-outputs | ||
abstract class Section implements Built<Section, SectionBuilder> { | ||
@BuiltValueSerializer(serializeNulls: true) // Add this line to get nulls to serialize when we convert to JSON | ||
static Serializer<Section> get serializer => _$sectionSerializer; | ||
|
||
String get id; | ||
String get name; | ||
|
||
@BuiltValueField(wireName: 'start_at') | ||
@nullable | ||
DateTime get startAt; | ||
|
||
@BuiltValueField(wireName: 'end_at') | ||
@nullable | ||
DateTime get endAt; | ||
|
||
Section._(); | ||
factory Section([void Function(SectionBuilder) updates]) = _$Section; | ||
|
||
static void _initializeBuilder(SectionBuilder b) => b | ||
..id = '' | ||
..name = ''; | ||
} |
Oops, something went wrong.