import 'package:hmg_patient_app/uitl/date_uitl.dart';
class List_BabyInformationModel {
  int? alertBy;
  int? babyID;
  String? babyName;
  DateTime? dOB;
  int? gender;
  String? genderDescription;
  int? patientID;
  int? userID;

  List_BabyInformationModel(
      {this.alertBy,
        this.babyID,
        this.babyName,
        this.dOB,
        this.gender,
        this.genderDescription,
        this.patientID,
        this.userID});

  List_BabyInformationModel.fromJson(Map<String, dynamic> json) {
    alertBy = json['AlertBy'];
    babyID = json['BabyID'];
    babyName = json['BabyName'];
    dOB = DateUtil.convertStringToDate(json['DOB']);
    gender = json['Gender'];
    genderDescription = json['GenderDescription'];
    patientID = json['PatientID'];
    userID = json['UserID'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['AlertBy'] = this.alertBy;
    data['BabyID'] = this.babyID;
    data['BabyName'] = this.babyName;
    data['DOB'] = this.dOB;
    data['Gender'] = this.gender;
    data['GenderDescription'] = this.genderDescription;
    data['PatientID'] = this.patientID;
    data['UserID'] = this.userID;
    return data;
  }
}