create static method

EditMessageLiveLocation create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "editMessageLiveLocation",
  3. String special_return_type = "message",
  4. bool? is_tdlib_method,
  5. num? chat_id,
  6. num? message_id,
  7. ReplyMarkup? reply_markup,
  8. Location? location,
  9. num? live_period,
  10. num? heading,
  11. num? proximity_alert_radius,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static EditMessageLiveLocation create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "editMessageLiveLocation",
  String special_return_type = "message",
  bool? is_tdlib_method,
  num? chat_id,
  num? message_id,
  ReplyMarkup? reply_markup,
  Location? location,
  num? live_period,
  num? heading,
  num? proximity_alert_radius,
}) {
  // EditMessageLiveLocation editMessageLiveLocation = EditMessageLiveLocation({
  final Map editMessageLiveLocation_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "chat_id": chat_id,
    "message_id": 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,
  };

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

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