create static method
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,
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);
}