class WeeklyStepsResModel {
  int? iD;
  int? patientID;
  int? medCategoryID;
  int? medSubCategoryID;
  num? value;
  String? machineDate;
  bool? patientOutSA;
  dynamic notes;
  bool? isActive;
  String? createdOn;

  WeeklyStepsResModel({this.iD, this.patientID, this.medCategoryID, this.medSubCategoryID, this.value, this.machineDate, this.patientOutSA, this.notes, this.isActive, this.createdOn});

  WeeklyStepsResModel.fromJson(Map<String, dynamic> json) {
    iD = json['ID'];
    patientID = json['PatientID'];
    medCategoryID = json['MedCategoryID'];
    medSubCategoryID = json['MedSubCategoryID'];
    value = json['Value'] != null ? num.tryParse(json['Value'])!.toInt() : 0;
    machineDate = json['MachineDate'];
    patientOutSA = json['PatientOutSA'];
    notes = json['Notes'];
    isActive = json['IsActive'];
    createdOn = json['CreatedOn'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ID'] = this.iD;
    data['PatientID'] = this.patientID;
    data['MedCategoryID'] = this.medCategoryID;
    data['MedSubCategoryID'] = this.medSubCategoryID;
    data['Value'] = this.value;
    data['MachineDate'] = this.machineDate;
    data['PatientOutSA'] = this.patientOutSA;
    data['Notes'] = this.notes;
    data['IsActive'] = this.isActive;
    data['CreatedOn'] = this.createdOn;
    return data;
  }
}
