InvokeWithGooglePlayIntegrity.deserialize constructor

InvokeWithGooglePlayIntegrity.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InvokeWithGooglePlayIntegrity.deserialize(BinaryReader reader) {
  // Read [InvokeWithGooglePlayIntegrity] fields.
  final nonce = reader.readString();
  final token = reader.readString();
  final query = reader.readObject() as TlMethod;

  // Construct [InvokeWithGooglePlayIntegrity] object.
  final returnValue = InvokeWithGooglePlayIntegrity(
    nonce: nonce,
    token: token,
    query: query,
  );

  // Now return the deserialized [InvokeWithGooglePlayIntegrity].
  return returnValue;
}