81 lines
2.2 KiB
Dart
81 lines
2.2 KiB
Dart
class CommunityManageGroupsModel {
|
|
CommunityManageGroupsModel({
|
|
required this.status,
|
|
required this.statusCode,
|
|
required this.message,
|
|
required this.data,
|
|
});
|
|
|
|
final String? status;
|
|
final int? statusCode;
|
|
final String? message;
|
|
final List<Datum> data;
|
|
|
|
factory CommunityManageGroupsModel.fromJson(Map<String, dynamic> json){
|
|
return CommunityManageGroupsModel(
|
|
status: json["status"],
|
|
statusCode: json["status_code"],
|
|
message: json["message"],
|
|
data: json["data"] == null ? [] : List<Datum>.from(json["data"]!.map((x) => Datum.fromJson(x))),
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
class Datum {
|
|
Datum({
|
|
required this.id,
|
|
required this.manageCommunityXid,
|
|
required this.manageGroupXid,
|
|
required this.groupsData,
|
|
});
|
|
|
|
final int? id;
|
|
final int? manageCommunityXid;
|
|
final int? manageGroupXid;
|
|
final GroupsData? groupsData;
|
|
|
|
factory Datum.fromJson(Map<String, dynamic> json){
|
|
return Datum(
|
|
id: json["id"],
|
|
manageCommunityXid: json["manage_community_xid"],
|
|
manageGroupXid: json["manage_group_xid"],
|
|
groupsData: json["groups_data"] == null ? null : GroupsData.fromJson(json["groups_data"]),
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
class GroupsData {
|
|
GroupsData({
|
|
required this.id,
|
|
required this.manageGroupTypeXid,
|
|
required this.title,
|
|
required this.backgroundImage,
|
|
required this.groupImage,
|
|
required this.description,
|
|
required this.totalMember,
|
|
});
|
|
|
|
final int? id;
|
|
final int? manageGroupTypeXid;
|
|
final String? title;
|
|
final String? backgroundImage;
|
|
final String? groupImage;
|
|
final String? description;
|
|
final int? totalMember;
|
|
|
|
factory GroupsData.fromJson(Map<String, dynamic> json){
|
|
return GroupsData(
|
|
id: json["id"],
|
|
manageGroupTypeXid: json["manage_group_type_xid"],
|
|
title: json["title"],
|
|
backgroundImage: json["background_image"],
|
|
groupImage: json["group_image"],
|
|
description: json["description"],
|
|
totalMember: json["total_member"],
|
|
);
|
|
}
|
|
|
|
}
|