create static method
TelegramClientLibraryOk
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "telegramClientLibraryOk",
- String special_extra = "",
override
return original data json
Implementation
static TelegramClientLibraryOk create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "telegramClientLibraryOk",
String special_extra = "",
}) {
// TelegramClientLibraryOk telegramClientLibraryOk = TelegramClientLibraryOk({
final Map telegramClientLibraryOk_data_create_json = {
"@type": special_type,
"@extra": special_extra,
};
telegramClientLibraryOk_data_create_json
.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (telegramClientLibraryOk_data_create_json.containsKey(key) ==
false) {
telegramClientLibraryOk_data_create_json[key] = value;
}
});
}
return TelegramClientLibraryOk(telegramClientLibraryOk_data_create_json);
}