class StartCallRes {
  String? result;
  String? openSessionID;
  String? openTokenID;
  bool? isAuthenticated;
  int? messageStatus;
  String? appointmentNo;
  bool? isRecording;

  StartCallRes({
    this.result,
    this.openSessionID,
    this.openTokenID,
    this.isAuthenticated,
    this.appointmentNo,
    this.messageStatus,
    this.isRecording = true,
  });

  StartCallRes.fromJson(Map<String, dynamic> json) {
    result = json['Result'];
    openSessionID = json['OpenSessionID'];
    openTokenID = json['OpenTokenID'];
    isAuthenticated = json['IsAuthenticated'];
    messageStatus = json['MessageStatus'];
    appointmentNo = json['AppointmentNo'];
    isRecording = json['IsRecordedSession'] ?? false;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['Result'] = this.result;
    data['OpenSessionID'] = this.openSessionID;
    data['OpenTokenID'] = this.openTokenID;
    data['IsAuthenticated'] = this.isAuthenticated;
    data['MessageStatus'] = this.messageStatus;
    data['AppointmentNo'] = this.appointmentNo;
    data['IsRecordedSession'] = this.isRecording ?? false;
    return data;
  }
}
