WebStoredCall.fromJson constructor
- Map data
Constructs a WebStoredCall from the provided data
.
Implementation
factory WebStoredCall.fromJson(Map<dynamic, dynamic> data) {
return WebStoredCall(
chatId: ChatId(data['chatId']),
call: data['call'] == null ? null : ChatCall.fromJson(data['call']),
creds: data['creds'] == null ? null : ChatCallCredentials(data['creds']),
deviceId:
data['deviceId'] == null ? null : ChatCallDeviceId(data['deviceId']),
state:
data['state'] == null
? OngoingCallState.local
: OngoingCallState.values[data['state']],
);
}