create static method
AnswerShippingQuery
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "answerShippingQuery",
- String special_return_type = "ok",
- bool? is_tdlib_method,
- num? shipping_query_id,
- List<
ShippingOption> ? shipping_options, - String? error_message,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static AnswerShippingQuery create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "answerShippingQuery",
String special_return_type = "ok",
bool? is_tdlib_method,
num? shipping_query_id,
List<ShippingOption>? shipping_options,
String? error_message,
}) {
// AnswerShippingQuery answerShippingQuery = AnswerShippingQuery({
final Map answerShippingQuery_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"shipping_query_id": shipping_query_id,
"shipping_options": (shipping_options != null) ? shipping_options.toJson() : null,
"error_message": error_message,
};
answerShippingQuery_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (answerShippingQuery_data_create_json.containsKey(key) == false) {
answerShippingQuery_data_create_json[key] = value;
}
});
}
return AnswerShippingQuery(answerShippingQuery_data_create_json);
}