Files
c_trans_mobile/lib/features/home/data/models/comment_response.dart
jahongireshonqulov 1bf3e41abe Initial commit
2025-10-18 09:40:06 +05:00

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;
}
}