class PostParamsModel {
  num? versionID;
  int? channel;
  int? languageID;
  String? logInTokenID;
  String? tokenID;
  String? language;
  String? ipAddress;
  String? generalId;
  String? latitude;
  String? longitude;
  String? deviceTypeID;
  String? patientOutSA;
  String? sessionID;
  String? setupID;

  PostParamsModel(
      {this.versionID,
      this.channel,
      this.languageID,
      this.logInTokenID,
      this.tokenID,
      this.language,
      this.ipAddress,
      this.generalId,
      this.latitude,
      this.longitude,
      this.deviceTypeID,
      this.sessionID});

  PostParamsModel.fromJson(Map<String, dynamic> json) {
    versionID = json['VersionID'];
    channel = json['Channel'];
    languageID = json['LanguageID'];
    logInTokenID = json['LogInTokenID'];
    tokenID = json['TokenID'];
    sessionID = json['SessionID'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> data = <String, dynamic>{};
    data['VersionID'] = versionID;
    data['Channel'] = channel;
    data['LanguageID'] = languageID;
    data['LogInTokenID'] = logInTokenID ?? "";
    data['TokenID'] = tokenID ?? "";
    data['SessionID'] = sessionID ?? "";
    return data;
  }

  Map<String, dynamic> toJsonAfterLogin() {
    Map<String, dynamic> data = <String, dynamic>{};
    data['VersionID'] = versionID;
    data['Channel'] = channel;
    data['LanguageID'] = languageID;
    data['LogInTokenID'] = logInTokenID;
    data['TokenID'] = tokenID;
    data['SessionID'] = sessionID;
    return data;
  }

  String? _logInTokenID;

  String? get getLogInTokenID => _logInTokenID ?? logInTokenID;

  set setLogInTokenID(String? value) {
    logInTokenID = value;
    _logInTokenID = value;
  }

  set setTokenID(String? token) => tokenID = token;
}
