create static method

GetNetworkStatistics create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "getNetworkStatistics",
  3. String special_return_type = "networkStatistics",
  4. bool? is_tdlib_method,
  5. bool? only_current,
})
override

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

Implementation

static GetNetworkStatistics create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "getNetworkStatistics",
  String special_return_type = "networkStatistics",
  bool? is_tdlib_method,
  bool? only_current,
}) {
  // GetNetworkStatistics getNetworkStatistics = GetNetworkStatistics({
  final Map getNetworkStatistics_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "only_current": only_current,
  };

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

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