fromMap static method

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

Construct from Map.

Implementation

static GetMapThumbnailFile? 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 location = Location.fromMap(_map['location'])!;
  var zoom = _map['zoom']! as int;
  var width = _map['width']! as int;
  var height = _map['height']! as int;
  var scale = _map['scale']! as int;
  var chat_id = _map['chat_id']! as int;
  return GetMapThumbnailFile(
    extra: extra,
    clientId: clientId,
    location: location,
    zoom: zoom,
    width: width,
    height: height,
    scale: scale,
    chat_id: chat_id,
  );
}