create static method

LinkData create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "linkData",
  3. String? icon,
  4. String? title,
  5. String? value,
})
override

Generated

Implementation

static LinkData create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "linkData",
  String? icon,
  String? title,
  String? value,
}) {
  // LinkData linkData = LinkData({
  final Map linkData_data_create_json = {
    "@type": special_type,
    "icon": icon,
    "title": title,
    "value": value,
  };

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

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