createToken method

Future<Tenant> createToken(
  1. int id
)

Implementation

Future<Tenant> createToken(int id) async {
  return dio.post(
    '/create-token',
    data: {
      'id': id,
    },
  ).then(
    (response) => response.body<Tenant>(),
  );
}