mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
feat: space setting
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
18
lib/models_new/space_setting/data.dart
Normal file
18
lib/models_new/space_setting/data.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:PiliPlus/models_new/space_setting/privacy.dart';
|
||||
|
||||
class SpaceSettingData {
|
||||
Privacy? privacy;
|
||||
bool? showNftSwitch;
|
||||
String? exclusiveUrl;
|
||||
|
||||
SpaceSettingData({this.privacy, this.showNftSwitch, this.exclusiveUrl});
|
||||
|
||||
factory SpaceSettingData.fromJson(Map<String, dynamic> json) =>
|
||||
SpaceSettingData(
|
||||
privacy: json['privacy'] == null
|
||||
? null
|
||||
: Privacy.fromJson(json['privacy'] as Map<String, dynamic>),
|
||||
showNftSwitch: json['show_nft_switch'] as bool?,
|
||||
exclusiveUrl: json['exclusive_url'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user