You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0KB

  1. class EnvironmentParameter {
  2. int id;
  3. String name;
  4. num index;
  5. int activityId;
  6. String executeDate;
  7. bool status;
  8. EnvironmentParameter(
  9. {this.id,
  10. this.name,
  11. this.index,
  12. this.activityId,
  13. this.executeDate,
  14. this.status});
  15. EnvironmentParameter.clone(EnvironmentParameter e) {
  16. this.id = e.id;
  17. this.name = e.name;
  18. this.index = e.index;
  19. this.activityId = e.activityId;
  20. this.executeDate = e.executeDate;
  21. this.status = e.status;
  22. }
  23. EnvironmentParameter.fromJson(Map<String, dynamic> json) {
  24. id = json['id'];
  25. name = json['name'];
  26. index = json['index'];
  27. activityId = json['activityId'];
  28. executeDate = json['executeDate'];
  29. status = json['status'];
  30. }
  31. Map<String, dynamic> toJson() {
  32. final Map<String, dynamic> data = new Map<String, dynamic>();
  33. data['id'] = this.id;
  34. data['name'] = this.name;
  35. data['index'] = this.index;
  36. data['activityId'] = this.activityId;
  37. data['executeDate'] = this.executeDate;
  38. data['status'] = this.status;
  39. return data;
  40. }
  41. }