create static method

MessageVideoChatStarted create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "messageVideoChatStarted",
  3. String special_return_type = "messageContent",
  4. num? group_call_id,
})
override

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

Implementation

static MessageVideoChatStarted create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "messageVideoChatStarted",
  String special_return_type = "messageContent",
  num? group_call_id,
}) {
  // MessageVideoChatStarted messageVideoChatStarted = MessageVideoChatStarted({
  final Map messageVideoChatStarted_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "group_call_id": group_call_id,
  };

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

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