createUser static method

User createUser(
  1. INyxx client,
  2. RawApiMap rawJson
)

Creates a User object, can be used for other classes where you have correct rawJson data from the API.

void main() {
    var bot = Nyxx("TOKEN");
    RawApiMap rawJson = /* rawJson from the API */
    User user = EntityUtility.createUser(bot, rawJson);
}

Implementation

static User createUser(INyxx client, RawApiMap rawJson) =>
    User._new(client, rawJson);