create static method

PubDevPackageOptions create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "pubDevPackageOptions",
  3. bool? isdiscontinued,
  4. Object? replacedby,
  5. bool? isunlisted,
})
override

return original data json

Implementation

static PubDevPackageOptions create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "pubDevPackageOptions",
  bool? isdiscontinued,
  Object? replacedby,
  bool? isunlisted,
}) {
  // PubDevPackageOptions pubDevPackageOptions = PubDevPackageOptions({
  final Map pubDevPackageOptions_data_create_json = {
    "@type": special_type,
    "isDiscontinued": isdiscontinued,
    "replacedBy": replacedby,
    "isUnlisted": isunlisted,
  };

  pubDevPackageOptions_data_create_json
      .removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (pubDevPackageOptions_data_create_json.containsKey(key) == false) {
        pubDevPackageOptions_data_create_json[key] = value;
      }
    });
  }
  return PubDevPackageOptions(pubDevPackageOptions_data_create_json);
}