editAccountInfo method

Future<Map> editAccountInfo({
  1. required String access_token,
  2. String? short_name,
  3. String? author_name,
  4. String? author_url,
  5. Client? httpClient,
})

Implementation

Future<Map> editAccountInfo({
  required String access_token,
  String? short_name,
  String? author_name,
  String? author_url,
  Client? httpClient,
}) async {
  Map parameters = {
    "access_token": access_token,
  };

  if (short_name != null) {
    parameters["short_name"] = short_name;
  }
  if (author_name != null) {
    parameters["author_name"] = author_name;
  }

  if (author_url != null) {
    parameters["author_url"] = author_url;
  }
  Map result = await invoke(
    method: "editAccountInfo",
    parameters: parameters,
    httpClient: httpClient,
  );

  return result;
}