You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
Dart
42 lines
1.2 KiB
Dart
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;
|
|
}
|
|
}
|