create static method

InputMessageForwarded create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "inputMessageForwarded",
  3. String special_return_type = "inputMessageContent",
  4. num? from_chat_id,
  5. num? message_id,
  6. bool? in_game_share,
  7. bool? replace_video_start_timestamp,
  8. num? new_video_start_timestamp,
  9. MessageCopyOptions? copy_options,
})
override

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

Implementation

static InputMessageForwarded create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "inputMessageForwarded",
  String special_return_type = "inputMessageContent",
  num? from_chat_id,
  num? message_id,
  bool? in_game_share,
  bool? replace_video_start_timestamp,
  num? new_video_start_timestamp,
  MessageCopyOptions? copy_options,
}) {
  // InputMessageForwarded inputMessageForwarded = InputMessageForwarded({
  final Map inputMessageForwarded_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "from_chat_id": from_chat_id,
    "message_id": message_id,
    "in_game_share": in_game_share,
    "replace_video_start_timestamp": replace_video_start_timestamp,
    "new_video_start_timestamp": new_video_start_timestamp,
    "copy_options": (copy_options != null) ? copy_options.toJson() : null,
  };

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

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