import 'dart:convert';

class FamilyFileResponseModelLists {
  int? id;
  int? patientId;
  int? responseId;
  dynamic relationshipId;
  dynamic relationship;
  dynamic relationshipN;
  int? regionId;
  int? familyRegionId;
  int? status;
  dynamic isActive;
  String? editedOn;
  String? createdOn;
  int? age;
  String? emaiLAddress;
  int? gender;
  String? genderDescription;
  String? genderImage;
  String? mobileNumber;
  int? patientDataVerified;
  String? patientIdenficationNumber;
  String? patientName;
  String? statusDescription;
  bool? isSuperUser = false;
  bool? isRequestFromMySide;
  String? patientImageData;

  FamilyFileResponseModelLists(
      {this.id,
      this.patientId,
      this.responseId,
      this.relationshipId,
      this.relationship,
      this.relationshipN,
      this.regionId,
      this.familyRegionId,
      this.status,
      this.isActive,
      this.editedOn,
      this.createdOn,
      this.age,
      this.emaiLAddress,
      this.gender,
      this.genderDescription,
      this.genderImage,
      this.mobileNumber,
      this.patientDataVerified,
      this.patientIdenficationNumber,
      this.patientName,
      this.statusDescription,
      this.isSuperUser,
      this.isRequestFromMySide,
      this.patientImageData});

  factory FamilyFileResponseModelLists.fromRawJson(String str) => FamilyFileResponseModelLists.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory FamilyFileResponseModelLists.fromJson(Map<String, dynamic> json) => FamilyFileResponseModelLists(
        id: json["ID"],
        patientId: json["PatientID"],
        responseId: json["ResponseID"],
        relationshipId: json["RelationshipID"],
        relationship: json["Relationship"],
        relationshipN: json["RelationshipN"],
        regionId: json["RegionID"],
        familyRegionId: json["FamilyRegionID"],
        status: json["Status"],
        isActive: json["IsActive"],
        editedOn: json["EditedOn"],
        createdOn: json["CreatedOn"],
        age: json["Age"],
        emaiLAddress: json["EmaiLAddress"],
        gender: json["Gender"],
        genderDescription: json["GenderDescription"],
        genderImage: json["GenderImage"],
        mobileNumber: json["MobileNumber"],
        patientDataVerified: json["PatientDataVerified"],
        patientIdenficationNumber: json["PatientIdenficationNumber"],
        patientName: json["PatientName"],
        statusDescription: json["StatusDescription"],
        isSuperUser: json["isSuperUser"] ?? false,
        isRequestFromMySide: json["isRequestFromMySide"] ?? false,
        patientImageData: json["PatientImageData"],
      );

  Map<String, dynamic> toJson() => {
        "ID": id,
        "PatientID": patientId,
        "ResponseID": responseId,
        "RelationshipID": relationshipId,
        "Relationship": relationship,
        "RelationshipN": relationshipN,
        "RegionID": regionId,
        "FamilyRegionID": familyRegionId,
        "Status": status,
        "IsActive": isActive,
        "EditedOn": editedOn,
        "CreatedOn": createdOn,
        "Age": age,
        "EmaiLAddress": emaiLAddress,
        "Gender": gender,
        "GenderDescription": genderDescription,
        "GenderImage": genderImage,
        "MobileNumber": mobileNumber,
        "PatientDataVerified": patientDataVerified,
        "PatientIdenficationNumber": patientIdenficationNumber,
        "PatientName": patientName,
        "StatusDescription": statusDescription,
        "isSuperUser": isSuperUser,
        "isRequestFromMySide": isRequestFromMySide,
        "PatientImageData": patientImageData,
      };
}
