fromText static method
static method to create and return TextObject. It takes String
object
that represent data as an argument.
Example:
String firebaseDoc = '<firebase-doc>';
final firebaseDocObject = ProjectDataObject.fromText(firebaseDoc);
Implementation
static TextObject fromText(String text) {
return TextObject(text);
}