Initial commit: Penyerahan final Source code Tugas Akhir
This commit is contained in:
24
lib/models/counter_qna_like_model.dart
Normal file
24
lib/models/counter_qna_like_model.dart
Normal file
@ -0,0 +1,24 @@
|
||||
class CounterLikeModel {
|
||||
CounterLikeModel({
|
||||
this.status,
|
||||
this.error,
|
||||
required this.data,
|
||||
});
|
||||
|
||||
final int? status;
|
||||
final bool? error;
|
||||
String? data;
|
||||
|
||||
factory CounterLikeModel.fromJson(Map<String, dynamic> json) =>
|
||||
CounterLikeModel(
|
||||
status: json["status"],
|
||||
error: json["error"],
|
||||
data: (json["data"]["count like "]).toString(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"status": status,
|
||||
"error": error,
|
||||
"data": data,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user