44 lines
976 B
Dart
44 lines
976 B
Dart
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;
|
|
}
|
|
|
|
} |