fromJson static method

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

Implementation

static GuildWidget fromJson(Map<String, dynamic> json) {
  return GuildWidget(
    enabled: json['enabled'],
    snowflake: json['snowflake'],
  );
}