mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 16:48:43 +00:00
fix save reply
opt profile page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Stat {
|
||||
int? coins;
|
||||
num? coins;
|
||||
int? danmakus;
|
||||
int? favorite;
|
||||
int? favorites;
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:PiliPlus/models_new/pgc/pgc_info_model/danmaku.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/vt.dart';
|
||||
|
||||
class StatForUnity {
|
||||
int? coin;
|
||||
num? coin;
|
||||
Danmaku? danmaku;
|
||||
int? likes;
|
||||
int? reply;
|
||||
@@ -11,7 +11,7 @@ class StatForUnity {
|
||||
StatForUnity({this.coin, this.danmaku, this.likes, this.reply, this.vt});
|
||||
|
||||
factory StatForUnity.fromJson(Map<String, dynamic> json) => StatForUnity(
|
||||
coin: json['coin'] as int?,
|
||||
coin: json['coin'] as num?,
|
||||
danmaku: json['danmaku'] == null
|
||||
? null
|
||||
: Danmaku.fromJson(json['danmaku'] as Map<String, dynamic>),
|
||||
|
||||
Reference in New Issue
Block a user