mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
15
lib/models_new/bubble/base_info.dart
Normal file
15
lib/models_new/bubble/base_info.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:PiliPlus/models_new/bubble/tribee_info.dart';
|
||||
|
||||
class BaseInfo {
|
||||
TribeInfo? tribeInfo;
|
||||
bool? isJoined;
|
||||
|
||||
BaseInfo({this.tribeInfo, this.isJoined});
|
||||
|
||||
factory BaseInfo.fromJson(Map<String, dynamic> json) => BaseInfo(
|
||||
tribeInfo: json['tribee_info'] == null
|
||||
? null
|
||||
: TribeInfo.fromJson(json['tribee_info'] as Map<String, dynamic>),
|
||||
isJoined: json['is_joined'] as bool?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user