getObject function

TlObject? getObject(
  1. Map<String, dynamic> map
)

Implementation

TlObject? getObject(Map<String, dynamic> map) {
  var type = map['@type'];
  if (type == null) return null;

  return tlobjects[type]!.call(map);
}