create static method

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

return original data json

Implementation

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

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

  return linkData_data_create;
}