import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class PatientER_RRT_GetAllTransportationMethodListModel {
  int id;
  DateTime createDate;
  DateTime lastEditDate;
  int createdBy;
  int lastEditBy;
  bool isActive;
  String title;
  String titleAR;
  int price;
  Null isDefault;
  int visibility;
  Null durationId;
  String description;
  String descriptionAR;
  int totalPrice;
  int vAT;

  PatientER_RRT_GetAllTransportationMethodListModel(
      {
        this.id,
        this.createDate,
        this.lastEditDate,
        this.createdBy,
        this.lastEditBy,
        this.isActive,
        this.title,
        this.titleAR,
        this.price,
        this.isDefault,
        this.visibility,
        this.durationId,
        this.description,
        this.descriptionAR,
        this.totalPrice,
        this.vAT});

  PatientER_RRT_GetAllTransportationMethodListModel.fromJson(
      Map<String, dynamic> json) {
    id = json['Id'];
    createDate = DateUtil.convertStringToDate(json['CreateDate']);
    lastEditDate = DateUtil.convertStringToDate(json['LastEditDate']);
    createdBy = json['CreatedBy'];
    lastEditBy = json['LastEditBy'];
    isActive = json['IsActive'];
    title = json['Title'];
    titleAR = json['TitleAR'];
    price = json['Price'];
    isDefault = json['isDefault'];
    visibility = json['Visibility'];
    durationId = json['DurationId'];
    description = json['Description'];
    descriptionAR = json['DescriptionAR'];
    totalPrice = json['TotalPrice'];
    vAT = json['VAT'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['Id'] = this.id;
    data['CreateDate'] = this.createDate;
    data['LastEditDate'] = this.lastEditDate;
    data['CreatedBy'] = this.createdBy;
    data['LastEditBy'] = this.lastEditBy;
    data['IsActive'] = this.isActive;
    data['Title'] = this.title;
    data['TitleAR'] = this.titleAR;
    data['Price'] = this.price;
    data['isDefault'] = this.isDefault;
    data['Visibility'] = this.visibility;
    data['DurationId'] = this.durationId;
    data['Description'] = this.description;
    data['DescriptionAR'] = this.descriptionAR;
    data['TotalPrice'] = this.totalPrice;
    data['VAT'] = this.vAT;
    return data;
  }
}