create static method
PubDevPackageOptions
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "pubDevPackageOptions",
- bool? isdiscontinued,
- Object? replacedby,
- 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);
}