create static method
ForwardSource
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "forwardSource",
- String special_return_type = "forwardSource",
- num? chat_id,
- num? message_id,
- MessageSender? sender_id,
- String? sender_name,
- num? date,
- bool? is_outgoing,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static ForwardSource create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "forwardSource",
String special_return_type = "forwardSource",
num? chat_id,
num? message_id,
MessageSender? sender_id,
String? sender_name,
num? date,
bool? is_outgoing,
}) {
// ForwardSource forwardSource = ForwardSource({
final Map forwardSource_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"chat_id": chat_id,
"message_id": message_id,
"sender_id": (sender_id != null) ? sender_id.toJson() : null,
"sender_name": sender_name,
"date": date,
"is_outgoing": is_outgoing,
};
forwardSource_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (forwardSource_data_create_json.containsKey(key) == false) {
forwardSource_data_create_json[key] = value;
}
});
}
return ForwardSource(forwardSource_data_create_json);
}