fromJson static method

TextChannel fromJson(
  1. Map<String, Object?> json
)

Implementation

static TextChannel fromJson(Map<String, Object?> json) => TextChannel(
  added: (json['added'] as List? ?? const []).cast<String>(),
  removed: (json['removed'] as List? ?? const []).cast<String>(),
);