create static method

SocialAccount create({
  1. String special_type = "socialAccount",
  2. String? provider,
  3. String? url,
})
override

return original data json

Implementation

static SocialAccount create({
  String special_type = "socialAccount",
  String? provider,
  String? url,
}) {
  // SocialAccount socialAccount = SocialAccount({
  Map socialAccount_data_create_json = {
    "@type": special_type,
    "provider": provider,
    "url": url,
  };

  socialAccount_data_create_json.removeWhere((key, value) => value == null);
  SocialAccount socialAccount_data_create =
      SocialAccount(socialAccount_data_create_json);

  return socialAccount_data_create;
}