import 'package:hmg_patient_app/uitl/date_uitl.dart';

class GetPatientICProjectsModel {
  int? id;
  String? projectName;
  String? projectNameN;
  String? value;
  dynamic languageId;
  DateTime? createdOn;
  String? createdBy;
  dynamic editedOn;
  dynamic editedBy;
  bool? isActive;
  dynamic distanceInKilometers;

  GetPatientICProjectsModel(
      {this.id, this.projectName, this.projectNameN, this.value, this.languageId, this.createdOn, this.createdBy, this.editedOn, this.editedBy, this.distanceInKilometers, this.isActive});

  GetPatientICProjectsModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    projectName = json['ProjectName'];
    projectNameN = json['ProjectNameN'];
    value = json['Value'];
    languageId = json['LanguageId'];
    createdOn = DateUtil.convertStringToDate(json['CreatedOn']);
    createdBy = json['CreatedBy'];
    editedOn = json['EditedOn'];
    editedBy = json['EditedBy'];
    isActive = json['IsActive'];
    distanceInKilometers = json['DistanceInKilometers'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['ProjectName'] = this.projectName;
    data['ProjectNameN'] = this.projectNameN;
    data['Value'] = this.value;
    data['LanguageId'] = this.languageId;
    data['CreatedOn'] = this.createdOn;
    data['CreatedBy'] = this.createdBy;
    data['EditedOn'] = this.editedOn;
    data['EditedBy'] = this.editedBy;
    data['IsActive'] = this.isActive;
    data['DistanceInKilometers'] = this.distanceInKilometers;
    return data;
  }
}
