mirror of
https://github.com/go-vikunja/app
synced 2024-06-03 19:19:46 +00:00
056b2d72c9
This PR formats all code with dart format and adds a step to the CI so that it will be checked on every push and PR.
29 lines
962 B
Dart
29 lines
962 B
Dart
class Server {
|
|
bool? caldavEnabled;
|
|
bool? emailRemindersEnabled;
|
|
String? frontendUrl;
|
|
bool? linkSharingEnabled;
|
|
String? maxFileSize;
|
|
String? motd;
|
|
bool? registrationEnabled;
|
|
bool? taskAttachmentsEnabled;
|
|
bool? taskCommentsEnabled;
|
|
bool? totpEnabled;
|
|
bool? userDeletion;
|
|
String? version;
|
|
|
|
Server.fromJson(Map<String, dynamic> json)
|
|
: caldavEnabled = json['caldav_enabled'],
|
|
emailRemindersEnabled = json['email_reminders_enabled'],
|
|
frontendUrl = json['frontend_url'],
|
|
linkSharingEnabled = json['link_sharing_enabled'],
|
|
maxFileSize = json['max_file_size'],
|
|
motd = json['motd'],
|
|
registrationEnabled = json['registration_enabled'],
|
|
taskAttachmentsEnabled = json['task_attachments_enabled'],
|
|
taskCommentsEnabled = json['task_comments_enabled'],
|
|
totpEnabled = json['totp_enabled'],
|
|
userDeletion = json['user_deletion'],
|
|
version = json['version'];
|
|
}
|