create static method
ReactionNotificationSource
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "reactionNotificationSource",
- bool special_is_json_scheme_class = true,
- String special_return_type = "reactionNotificationSource",
- ReactionNotificationSourceNone? reaction_notification_source_none,
- ReactionNotificationSourceContacts? reaction_notification_source_contacts,
- ReactionNotificationSourceAll? reaction_notification_source_all,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static ReactionNotificationSource create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "reactionNotificationSource",
bool special_is_json_scheme_class = true,
String special_return_type = "reactionNotificationSource",
ReactionNotificationSourceNone? reaction_notification_source_none,
ReactionNotificationSourceContacts? reaction_notification_source_contacts,
ReactionNotificationSourceAll? reaction_notification_source_all,
}) {
// ReactionNotificationSource reactionNotificationSource = ReactionNotificationSource({
final Map reactionNotificationSource_data_create_json = {
"@type": special_type,
"@is_json_scheme_class": special_is_json_scheme_class,
"@return_type": special_return_type,
"reaction_notification_source_none": (reaction_notification_source_none != null) ? reaction_notification_source_none.toJson() : null,
"reaction_notification_source_contacts": (reaction_notification_source_contacts != null) ? reaction_notification_source_contacts.toJson() : null,
"reaction_notification_source_all": (reaction_notification_source_all != null) ? reaction_notification_source_all.toJson() : null,
};
reactionNotificationSource_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (reactionNotificationSource_data_create_json.containsKey(key) == false) {
reactionNotificationSource_data_create_json[key] = value;
}
});
}
return ReactionNotificationSource(reactionNotificationSource_data_create_json);
}