83 lines
2.3 KiB
Dart
83 lines
2.3 KiB
Dart
class FetchBlockedUser {
|
|
String? status;
|
|
int? statusCode;
|
|
String? message;
|
|
List<Data>? data;
|
|
|
|
FetchBlockedUser({this.status, this.statusCode, this.message, this.data});
|
|
|
|
FetchBlockedUser.fromJson(Map<String, dynamic> json) {
|
|
status = json['status'];
|
|
statusCode = json['status_code'];
|
|
message = json['message'];
|
|
if (json['data'] != null) {
|
|
data = <Data>[];
|
|
json['data'].forEach((v) {
|
|
data!.add(new Data.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['status'] = this.status;
|
|
data['status_code'] = this.statusCode;
|
|
data['message'] = this.message;
|
|
if (this.data != null) {
|
|
data['data'] = this.data!.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class Data {
|
|
int? blockedIamPrincipalXid;
|
|
int? iamPrincipalXid;
|
|
BlockedProfile? blockedProfile;
|
|
|
|
Data(
|
|
{this.blockedIamPrincipalXid, this.iamPrincipalXid, this.blockedProfile});
|
|
|
|
Data.fromJson(Map<String, dynamic> json) {
|
|
blockedIamPrincipalXid = json['blocked_iam_principal_xid'];
|
|
iamPrincipalXid = json['iam_principal_xid'];
|
|
blockedProfile = json['blocked_profile'] != null
|
|
? new BlockedProfile.fromJson(json['blocked_profile'])
|
|
: null;
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['blocked_iam_principal_xid'] = this.blockedIamPrincipalXid;
|
|
data['iam_principal_xid'] = this.iamPrincipalXid;
|
|
if (this.blockedProfile != null) {
|
|
data['blocked_profile'] = this.blockedProfile!.toJson();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class BlockedProfile {
|
|
int? id;
|
|
String? userName;
|
|
String? fullName;
|
|
String? profilePhoto;
|
|
|
|
BlockedProfile({this.id, this.userName, this.fullName, this.profilePhoto});
|
|
|
|
BlockedProfile.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
userName = json['user_name'];
|
|
fullName = json['full_name'];
|
|
profilePhoto = json['profile_photo'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['user_name'] = this.userName;
|
|
data['full_name'] = this.fullName;
|
|
data['profile_photo'] = this.profilePhoto;
|
|
return data;
|
|
}
|
|
} |