-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
776 additions
and
91 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
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
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
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
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
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
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
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,38 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'app_information.freezed.dart'; | ||
part 'app_information.g.dart'; | ||
|
||
@freezed | ||
class AppInformation with _$AppInformation { | ||
const factory AppInformation({ | ||
required PlatformAppInformation ios, | ||
required PlatformAppInformation android, | ||
}) = _AppInformation; | ||
|
||
factory AppInformation.fromJson(Map<String, dynamic> json) => | ||
_$AppInformationFromJson(json); | ||
} | ||
|
||
@freezed | ||
class PlatformAppInformation with _$PlatformAppInformation { | ||
const factory PlatformAppInformation({ | ||
required AppVersion? latest, | ||
required AppVersion? minimum, | ||
required String? downloadUrl, | ||
}) = _PlatformAppInformation; | ||
|
||
factory PlatformAppInformation.fromJson(Map<String, dynamic> json) => | ||
_$PlatformAppInformationFromJson(json); | ||
} | ||
|
||
@freezed | ||
class AppVersion with _$AppVersion { | ||
const factory AppVersion({ | ||
required String version, | ||
required String? message, | ||
}) = _AppVersion; | ||
|
||
factory AppVersion.fromJson(Map<String, dynamic> json) => | ||
_$AppVersionFromJson(json); | ||
} |
Oops, something went wrong.