chatContact method

Future<GetContact$Query> chatContact(
  1. ChatContactId id
)

Returns a ChatContact by its ID.

Authentication

Mandatory.

Implementation

Future<GetContact$Query> chatContact(ChatContactId id) async {
  Log.debug('chatContact($id)', '$runtimeType');

  final variables = GetContactArguments(id: id);
  final QueryResult res = await client.query(
    QueryOptions(
      operationName: 'GetContact',
      document: GetContactQuery(variables: variables).document,
      variables: variables.toJson(),
    ),
  );
  return GetContact$Query.fromJson(res.data!);
}