create static method
FormattedText
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "formattedText",
- String special_return_type = "formattedText",
- String? text,
- List<
TextEntity> ? entities,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static FormattedText create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "formattedText",
String special_return_type = "formattedText",
String? text,
List<TextEntity>? entities,
}) {
// FormattedText formattedText = FormattedText({
final Map formattedText_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"text": text,
"entities": (entities != null) ? entities.toJson() : null,
};
formattedText_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (formattedText_data_create_json.containsKey(key) == false) {
formattedText_data_create_json[key] = value;
}
});
}
return FormattedText(formattedText_data_create_json);
}