toJson method
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,
};