InvokeWithApnsSecret.deserialize constructor
InvokeWithApnsSecret.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory InvokeWithApnsSecret.deserialize(BinaryReader reader) {
// Read [InvokeWithApnsSecret] fields.
final nonce = reader.readString();
final secret = reader.readString();
final query = reader.readObject() as TlMethod;
// Construct [InvokeWithApnsSecret] object.
final returnValue = InvokeWithApnsSecret(
nonce: nonce,
secret: secret,
query: query,
);
// Now return the deserialized [InvokeWithApnsSecret].
return returnValue;
}