parseGatewayBot method

GatewayBot parseGatewayBot(
  1. Map<String, Object?> raw
)

Implementation

GatewayBot parseGatewayBot(Map<String, Object?> raw) {
  return GatewayBot(
    url: Uri.parse(raw['url'] as String),
    shards: raw['shards'] as int,
    sessionStartLimit: parseSessionStartLimit(raw['session_start_limit'] as Map<String, Object?>),
  );
}