create static method
ChatBackground
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "chatBackground",
- String special_return_type = "chatBackground",
- Background? background,
- num? dark_theme_dimming,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static ChatBackground create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "chatBackground",
String special_return_type = "chatBackground",
Background? background,
num? dark_theme_dimming,
}) {
// ChatBackground chatBackground = ChatBackground({
final Map chatBackground_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"background": (background != null) ? background.toJson() : null,
"dark_theme_dimming": dark_theme_dimming,
};
chatBackground_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (chatBackground_data_create_json.containsKey(key) == false) {
chatBackground_data_create_json[key] = value;
}
});
}
return ChatBackground(chatBackground_data_create_json);
}