fromMap static method

InternalLinkTypeBotStart? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static InternalLinkTypeBotStart? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var bot_username = _map['bot_username']! as String;
  var start_parameter = _map['start_parameter']! as String;
  var autostart = _map['autostart']! as bool;
  return InternalLinkTypeBotStart(
    extra: extra,
    clientId: clientId,
    bot_username: bot_username,
    start_parameter: start_parameter,
    autostart: autostart,
  );
}