create static method

GetMapThumbnailFile create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "getMapThumbnailFile",
  3. String special_return_type = "file",
  4. bool? is_tdlib_method,
  5. Location? location,
  6. num? zoom,
  7. num? width,
  8. num? height,
  9. num? scale,
  10. num? chat_id,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static GetMapThumbnailFile create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "getMapThumbnailFile",
  String special_return_type = "file",
  bool? is_tdlib_method,
  Location? location,
  num? zoom,
  num? width,
  num? height,
  num? scale,
  num? chat_id,
}) {
  // GetMapThumbnailFile getMapThumbnailFile = GetMapThumbnailFile({
  final Map getMapThumbnailFile_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "location": (location != null) ? location.toJson() : null,
    "zoom": zoom,
    "width": width,
    "height": height,
    "scale": scale,
    "chat_id": chat_id,
  };

  getMapThumbnailFile_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (getMapThumbnailFile_data_create_json.containsKey(key) == false) {
        getMapThumbnailFile_data_create_json[key] = value;
      }
    });
  }
  return GetMapThumbnailFile(getMapThumbnailFile_data_create_json);
}