mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
41 lines
1019 B
Dart
41 lines
1019 B
Dart
import 'package:PiliPlus/models/model_avatar.dart';
|
|
|
|
class ImUserInfosData {
|
|
int? mid;
|
|
String? name;
|
|
String? face;
|
|
String? sign;
|
|
Vip? vip;
|
|
Pendant? pendant;
|
|
BaseOfficialVerify? official;
|
|
|
|
ImUserInfosData({
|
|
this.mid,
|
|
this.name,
|
|
this.face,
|
|
this.sign,
|
|
this.vip,
|
|
this.pendant,
|
|
this.official,
|
|
});
|
|
|
|
factory ImUserInfosData.fromJson(Map<String, dynamic> json) =>
|
|
ImUserInfosData(
|
|
mid: json['mid'] as int?,
|
|
name: json['name'] as String?,
|
|
face: json['face'] as String?,
|
|
sign: json['sign'] as String?,
|
|
vip: json['vip'] == null
|
|
? null
|
|
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
|
|
pendant: json['pendant'] == null
|
|
? null
|
|
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
|
|
official: json['official'] == null
|
|
? null
|
|
: BaseOfficialVerify.fromJson(
|
|
json['official'] as Map<String, dynamic>,
|
|
),
|
|
);
|
|
}
|