mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
show medal wall
show user follow time show top image title Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
25
lib/models_new/relation/data.dart
Normal file
25
lib/models_new/relation/data.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:PiliPlus/utils/extension/iterable_ext.dart';
|
||||
|
||||
class RelationData {
|
||||
int? mid;
|
||||
int? attribute;
|
||||
int? mtime;
|
||||
List<int>? tag;
|
||||
int? special;
|
||||
|
||||
RelationData({
|
||||
this.mid,
|
||||
this.attribute,
|
||||
this.mtime,
|
||||
this.tag,
|
||||
this.special,
|
||||
});
|
||||
|
||||
factory RelationData.fromJson(Map<String, dynamic> json) => RelationData(
|
||||
mid: json['mid'] as int?,
|
||||
attribute: json['attribute'] as int?,
|
||||
mtime: json['mtime'] as int?,
|
||||
tag: (json['tag'] as List<dynamic>?)?.fromCast(),
|
||||
special: json['special'] as int?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user