create static method
MessageSourceChatHistory
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "messageSourceChatHistory",
- String special_return_type = "messageSource",
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static MessageSourceChatHistory create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "messageSourceChatHistory",
String special_return_type = "messageSource",
}) {
// MessageSourceChatHistory messageSourceChatHistory = MessageSourceChatHistory({
final Map messageSourceChatHistory_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
};
messageSourceChatHistory_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (messageSourceChatHistory_data_create_json.containsKey(key) == false) {
messageSourceChatHistory_data_create_json[key] = value;
}
});
}
return MessageSourceChatHistory(messageSourceChatHistory_data_create_json);
}