mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-08 19:17:49 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/dynamics/opus_detail/official.dart
Normal file
22
lib/models/dynamics/opus_detail/official.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
class Official {
|
||||
String? desc;
|
||||
int? role;
|
||||
String? title;
|
||||
int? type;
|
||||
|
||||
Official({this.desc, this.role, this.title, this.type});
|
||||
|
||||
factory Official.fromJson(Map<String, dynamic> json) => Official(
|
||||
desc: json['desc'] as String?,
|
||||
role: json['role'] as int?,
|
||||
title: json['title'] as String?,
|
||||
type: json['type'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'desc': desc,
|
||||
'role': role,
|
||||
'title': title,
|
||||
'type': type,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user