mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
tweaks (#1142)
* opt: unused layout * mod: semantics * opt: DanmakuMsg type * opt: avoid cast * opt: unnecessary_lambdas * opt: use isEven * opt: logger * opt: invalid common page * tweak * opt: unify DynController
This commit is contained in:
committed by
GitHub
parent
56ffc2781f
commit
5f8313901b
@@ -2,6 +2,7 @@ import 'package:PiliPlus/models_new/upower_rank/level_info.dart';
|
||||
import 'package:PiliPlus/models_new/upower_rank/rank_info.dart';
|
||||
import 'package:PiliPlus/models_new/upower_rank/up_info.dart';
|
||||
import 'package:PiliPlus/models_new/upower_rank/user_info.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
|
||||
class UpowerRankData {
|
||||
UpInfo? upInfo;
|
||||
@@ -37,7 +38,7 @@ class UpowerRankData {
|
||||
memberTotal: json['member_total'] as int?,
|
||||
privilegeType: json['privilege_type'] as int?,
|
||||
isCharge: json['is_charge'] as bool?,
|
||||
tabs: (json['tabs'] as List?)?.cast(),
|
||||
tabs: (json['tabs'] as List?)?.fromCast(),
|
||||
levelInfo: (json['level_info'] as List<dynamic>?)
|
||||
?.map((e) => LevelInfo.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
|
||||
Reference in New Issue
Block a user