api_response.dart 591 B

12345678910111213141516171819202122232425262728
  1. class ApiResponse {
  2. String? type;//success
  3. String? date;
  4. int? spent;
  5. int? size;
  6. int? count;
  7. int? position;
  8. String? message;
  9. dynamic data;
  10. ApiResponse({this.type, this.date, this.spent, this.size, this.count,this.position,this.message,this.data});
  11. ApiResponse.fromJson(Map<String, dynamic> map) {
  12. type = map['type'];
  13. date = map['date'];
  14. spent = map['spent'];
  15. size = map['size'];
  16. count = map['count'];
  17. position = map['position'];
  18. message = map['message'];
  19. type = map['type'];
  20. data = map['data'];
  21. }
  22. }