fromMap static method
Implementation
static Future<PrivateSelectContext> fromMap(
MarshallerContract marshaller, Map<String, dynamic> payload) async {
return PrivateSelectContext(
customId: payload['data']['custom_id'],
id: Snowflake(payload['id']),
applicationId: Snowflake(payload['application_id']),
token: payload['token'],
version: payload['version'],
message: await marshaller.dataStore.message.getPrivateMessage(
messageId: Snowflake(payload['message']['id']),
channelId: Snowflake(payload['channel_id']),
),
user: await marshaller.serializers.user.serialize(payload['user']),
);
}