toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() =>
    {
      if (facebook != null) "facebook": facebook,
      if (instagram != null) "instagram": instagram,
      if (tiktok != null) "tiktok": tiktok,
      if (spotify != null) "spotify": spotify,
      if (twitter != null) "twitter": twitter,
    };