create static method
PushMessageContentAnimation
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "pushMessageContentAnimation",
- String special_return_type = "pushMessageContent",
- Animation? animation,
- String? caption,
- bool? is_pinned,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static PushMessageContentAnimation create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "pushMessageContentAnimation",
String special_return_type = "pushMessageContent",
Animation? animation,
String? caption,
bool? is_pinned,
}) {
// PushMessageContentAnimation pushMessageContentAnimation = PushMessageContentAnimation({
final Map pushMessageContentAnimation_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"animation": (animation != null) ? animation.toJson() : null,
"caption": caption,
"is_pinned": is_pinned,
};
pushMessageContentAnimation_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (pushMessageContentAnimation_data_create_json.containsKey(key) == false) {
pushMessageContentAnimation_data_create_json[key] = value;
}
});
}
return PushMessageContentAnimation(pushMessageContentAnimation_data_create_json);
}