fromJson static method

GuildMembersChunkEvent fromJson(
  1. Map<String, dynamic> json
)

Implementation

static GuildMembersChunkEvent fromJson(Map<String, dynamic> json) {
  return GuildMembersChunkEvent(
    guildId: json['guild_id'],
    members: fromArray(GuildMember.fromJson, json['members'])!,
    chunkIndex: json['chunk_index'],
    chunkCount: json['chunk_count'],
    notFound: json['not_found'],
    presences: fromArray(PresenceUpdate.fromJson, json['presences']),
    nonce: json['nonce'],
  );
}