mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-25 18:48:43 +00:00
show user name
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
20
lib/models_new/user_real_name/data.dart
Normal file
20
lib/models_new/user_real_name/data.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:PiliPlus/models_new/user_real_name/reject_page.dart';
|
||||
|
||||
class UserRealNameData {
|
||||
String? name;
|
||||
String? namePrefix;
|
||||
bool? show;
|
||||
RejectPage? rejectPage;
|
||||
|
||||
UserRealNameData({this.name, this.namePrefix, this.show, this.rejectPage});
|
||||
|
||||
factory UserRealNameData.fromJson(Map<String, dynamic> json) =>
|
||||
UserRealNameData(
|
||||
name: json['name'] as String?,
|
||||
namePrefix: json['name_prefix'] as String?,
|
||||
show: json['show'] as bool?,
|
||||
rejectPage: json['reject_page'] == null
|
||||
? null
|
||||
: RejectPage.fromJson(json['reject_page'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
19
lib/models_new/user_real_name/reject_page.dart
Normal file
19
lib/models_new/user_real_name/reject_page.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class RejectPage {
|
||||
String? title;
|
||||
String? text;
|
||||
String? img;
|
||||
|
||||
RejectPage({this.title, this.text, this.img});
|
||||
|
||||
factory RejectPage.fromJson(Map<String, dynamic> json) => RejectPage(
|
||||
title: json['title'] as String?,
|
||||
text: json['text'] as String?,
|
||||
img: json['img'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'title': title,
|
||||
'text': text,
|
||||
'img': img,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user