create static method
InlineQueryResultAnimation
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "inlineQueryResultAnimation",
- String special_return_type = "inlineQueryResult",
- String? id,
- Animation? animation,
- String? title,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static InlineQueryResultAnimation create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "inlineQueryResultAnimation",
String special_return_type = "inlineQueryResult",
String? id,
Animation? animation,
String? title,
}) {
// InlineQueryResultAnimation inlineQueryResultAnimation = InlineQueryResultAnimation({
final Map inlineQueryResultAnimation_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"animation": (animation != null) ? animation.toJson() : null,
"title": title,
};
inlineQueryResultAnimation_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (inlineQueryResultAnimation_data_create_json.containsKey(key) == false) {
inlineQueryResultAnimation_data_create_json[key] = value;
}
});
}
return InlineQueryResultAnimation(inlineQueryResultAnimation_data_create_json);
}