initial commit
This commit is contained in:
commit
217621daac
21 changed files with 1401 additions and 0 deletions
20
lib/models/settings.dart
Normal file
20
lib/models/settings.dart
Normal file
|
@ -0,0 +1,20 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "settings.freezed.dart";
|
||||
part "settings.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class Settings with _$Settings {
|
||||
const factory Settings({
|
||||
required String? socket,
|
||||
required String address,
|
||||
required String port,
|
||||
required String homeserver,
|
||||
required String issuer,
|
||||
required String jwtSecretFile,
|
||||
required String authorizeEndpoint,
|
||||
}) = _Settings;
|
||||
|
||||
factory Settings.fromJson(Map<String, dynamic> json) =>
|
||||
_$SettingsFromJson(json);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue