DiscordChannelMention.fromJson constructor

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

Implementation

factory DiscordChannelMention.fromJson(Map<String, dynamic> json) =>
    DiscordChannelMention(
      id: DiscordSnowflake(json[idEntry] as String),
      guildId: DiscordSnowflake(json[guildIdEntry] as String),
      type: json[typeEntry] as int,
      name: json[nameEntry] as String,
    );