SDKIPCResponse<T>.fromIPCMessage constructor
SDKIPCResponse<T>.fromIPCMessage (
- String base64EncodedMessage
Implementation
factory SDKIPCResponse.fromIPCMessage(String base64EncodedMessage) {
final json = utf8.decode(base64Url.decode(base64EncodedMessage));
final jsonMap = jsonDecode(json);
return SDKIPCResponse(
error: jsonMap['error'],
action: jsonMap['action'],
errorCode: jsonMap['errorCode'],
data: jsonMap['data'],
success: jsonMap['success']);
}