Initial commit
This commit is contained in:
44
lib/features/home/data/models/comment_response.dart
Normal file
44
lib/features/home/data/models/comment_response.dart
Normal file
@@ -0,0 +1,44 @@
|
||||
class CommentResponse {
|
||||
CommentResponse({
|
||||
this.message,
|
||||
this.rate,
|
||||
this.userUcode,
|
||||
this.orderNumber,
|
||||
this.id,
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
this.v,});
|
||||
|
||||
CommentResponse.fromJson(dynamic json) {
|
||||
message = json['message'];
|
||||
rate = json['rate'];
|
||||
userUcode = json['user_ucode'];
|
||||
orderNumber = json['order_number'];
|
||||
id = json['_id'];
|
||||
createdAt = json['createdAt'];
|
||||
updatedAt = json['updatedAt'];
|
||||
v = json['__v'];
|
||||
}
|
||||
String? message;
|
||||
int? rate;
|
||||
String? userUcode;
|
||||
String? orderNumber;
|
||||
String? id;
|
||||
String? createdAt;
|
||||
String? updatedAt;
|
||||
int? v;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final map = <String, dynamic>{};
|
||||
map['message'] = message;
|
||||
map['rate'] = rate;
|
||||
map['user_ucode'] = userUcode;
|
||||
map['order_number'] = orderNumber;
|
||||
map['_id'] = id;
|
||||
map['createdAt'] = createdAt;
|
||||
map['updatedAt'] = updatedAt;
|
||||
map['__v'] = v;
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user