create static method
EditInlineMessageLiveLocation
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "editInlineMessageLiveLocation",
- String special_return_type = "ok",
- bool? is_tdlib_method,
- String? inline_message_id,
- ReplyMarkup? reply_markup,
- Location? location,
- num? live_period,
- num? heading,
- num? proximity_alert_radius,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static EditInlineMessageLiveLocation create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "editInlineMessageLiveLocation",
String special_return_type = "ok",
bool? is_tdlib_method,
String? inline_message_id,
ReplyMarkup? reply_markup,
Location? location,
num? live_period,
num? heading,
num? proximity_alert_radius,
}) {
// EditInlineMessageLiveLocation editInlineMessageLiveLocation = EditInlineMessageLiveLocation({
final Map editInlineMessageLiveLocation_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"inline_message_id": inline_message_id,
"reply_markup": (reply_markup != null) ? reply_markup.toJson() : null,
"location": (location != null) ? location.toJson() : null,
"live_period": live_period,
"heading": heading,
"proximity_alert_radius": proximity_alert_radius,
};
editInlineMessageLiveLocation_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (editInlineMessageLiveLocation_data_create_json.containsKey(key) == false) {
editInlineMessageLiveLocation_data_create_json[key] = value;
}
});
}
return EditInlineMessageLiveLocation(editInlineMessageLiveLocation_data_create_json);
}