Files
GSFV2/gsf/lib/modals/feedbackGetModel.dart

74 lines
1.8 KiB
Dart

class GetFeedbackModel {
bool? success;
String? message;
List<Result>? result;
GetFeedbackModel({this.success, this.message, this.result});
GetFeedbackModel.fromJson(Map<String, dynamic> json) {
success = json['success'];
message = json['message'];
if (json['result'] != null) {
result = <Result>[];
json['result'].forEach((v) {
result!.add(new Result.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['success'] = this.success;
data['message'] = this.message;
if (this.result != null) {
data['result'] = this.result!.map((v) => v.toJson()).toList();
}
return data;
}
}
class Result {
int? id;
int? userId;
String? message;
int? reaction;
String? isActive;
Null? deletedAt;
String? createdAt;
String? updatedAt;
Result(
{this.id,
this.userId,
this.message,
this.reaction,
this.isActive,
this.deletedAt,
this.createdAt,
this.updatedAt});
Result.fromJson(Map<String, dynamic> json) {
id = json['id'];
userId = json['user_id'];
message = json['message'];
reaction = json['reaction'];
isActive = json['is_active'];
deletedAt = json['deleted_at'];
createdAt = json['created_at'];
updatedAt = json['updated_at'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['user_id'] = this.userId;
data['message'] = this.message;
data['reaction'] = this.reaction;
data['is_active'] = this.isActive;
data['deleted_at'] = this.deletedAt;
data['created_at'] = this.createdAt;
data['updated_at'] = this.updatedAt;
return data;
}
}