create static method

MessageInteractionInfo create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "messageInteractionInfo",
  3. String special_return_type = "messageInteractionInfo",
  4. num? view_count,
  5. num? forward_count,
  6. MessageReplyInfo? reply_info,
  7. MessageReactions? reactions,
})
override

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

Implementation

static MessageInteractionInfo create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "messageInteractionInfo",
  String special_return_type = "messageInteractionInfo",
  num? view_count,
  num? forward_count,
  MessageReplyInfo? reply_info,
  MessageReactions? reactions,
}) {
  // MessageInteractionInfo messageInteractionInfo = MessageInteractionInfo({
  final Map messageInteractionInfo_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "view_count": view_count,
    "forward_count": forward_count,
    "reply_info": (reply_info != null) ? reply_info.toJson() : null,
    "reactions": (reactions != null) ? reactions.toJson() : null,
  };

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

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