create static method
FoundAffiliatePrograms
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "foundAffiliatePrograms",
- String special_return_type = "foundAffiliatePrograms",
- num? total_count,
- List<
FoundAffiliateProgram> ? programs, - String? next_offset,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static FoundAffiliatePrograms create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "foundAffiliatePrograms",
String special_return_type = "foundAffiliatePrograms",
num? total_count,
List<FoundAffiliateProgram>? programs,
String? next_offset,
}) {
// FoundAffiliatePrograms foundAffiliatePrograms = FoundAffiliatePrograms({
final Map foundAffiliatePrograms_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"total_count": total_count,
"programs": (programs != null) ? programs.toJson() : null,
"next_offset": next_offset,
};
foundAffiliatePrograms_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (foundAffiliatePrograms_data_create_json.containsKey(key) == false) {
foundAffiliatePrograms_data_create_json[key] = value;
}
});
}
return FoundAffiliatePrograms(foundAffiliatePrograms_data_create_json);
}