create static method
CreateAds
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "createAds",
- bool? is_anonymous,
- bool? is_anonymous_locked,
- num? amount_day,
- List<
String> ? show_on_platforms, - AuthorAds? author,
- ContentAds? ads,
override
Generated
Implementation
static CreateAds create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "createAds",
bool? is_anonymous,
bool? is_anonymous_locked,
num? amount_day,
List<String>? show_on_platforms,
AuthorAds? author,
ContentAds? ads,
}) {
// CreateAds createAds = CreateAds({
final Map createAds_data_create_json = {
"@type": special_type,
"is_anonymous": is_anonymous,
"is_anonymous_locked": is_anonymous_locked,
"amount_day": amount_day,
"show_on_platforms": show_on_platforms,
"author": (author != null) ? author.toJson() : null,
"ads": (ads != null) ? ads.toJson() : null,
};
createAds_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (createAds_data_create_json.containsKey(key) == false) {
createAds_data_create_json[key] = value;
}
});
}
return CreateAds(createAds_data_create_json);
}