create static method

PackagexPubspecPlatforms create({
  1. String special_type = "packagexPubspecPlatforms",
  2. Object? android,
  3. Object? ios,
  4. Object? linux,
  5. Object? macos,
  6. Object? web,
  7. Object? windows,
})
override

return original data json

Implementation

static PackagexPubspecPlatforms create({
  String special_type = "packagexPubspecPlatforms",
  Object? android,
  Object? ios,
  Object? linux,
  Object? macos,
  Object? web,
  Object? windows,
}) {
  // PackagexPubspecPlatforms packagexPubspecPlatforms = PackagexPubspecPlatforms({
  Map packagexPubspecPlatforms_data_create_json = {
    "@type": special_type,
    "android": android,
    "ios": ios,
    "linux": linux,
    "macos": macos,
    "web": web,
    "windows": windows,
  };

  packagexPubspecPlatforms_data_create_json
      .removeWhere((key, value) => value == null);
  PackagexPubspecPlatforms packagexPubspecPlatforms_data_create =
      PackagexPubspecPlatforms(packagexPubspecPlatforms_data_create_json);

  return packagexPubspecPlatforms_data_create;
}