create static method
SecretChatState
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "secretChatState",
- bool special_is_json_scheme_class = true,
- String special_return_type = "secretChatState",
- SecretChatStatePending? secret_chat_state_pending,
- SecretChatStateReady? secret_chat_state_ready,
- SecretChatStateClosed? secret_chat_state_closed,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static SecretChatState create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "secretChatState",
bool special_is_json_scheme_class = true,
String special_return_type = "secretChatState",
SecretChatStatePending? secret_chat_state_pending,
SecretChatStateReady? secret_chat_state_ready,
SecretChatStateClosed? secret_chat_state_closed,
}) {
// SecretChatState secretChatState = SecretChatState({
final Map secretChatState_data_create_json = {
"@type": special_type,
"@is_json_scheme_class": special_is_json_scheme_class,
"@return_type": special_return_type,
"secret_chat_state_pending": (secret_chat_state_pending != null) ? secret_chat_state_pending.toJson() : null,
"secret_chat_state_ready": (secret_chat_state_ready != null) ? secret_chat_state_ready.toJson() : null,
"secret_chat_state_closed": (secret_chat_state_closed != null) ? secret_chat_state_closed.toJson() : null,
};
secretChatState_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (secretChatState_data_create_json.containsKey(key) == false) {
secretChatState_data_create_json[key] = value;
}
});
}
return SecretChatState(secretChatState_data_create_json);
}