ScopeEntry.fromReader constructor
ScopeEntry.fromReader(
- TeleportObjectReader reader
Implementation
factory ScopeEntry.fromReader(TeleportObjectReader reader) {
final instance = ScopeEntry();
TeleportField? field;
while ((field = reader.next()) != null) {
if (field!.isNull) continue;
switch (field.fieldId) {
case fieldIdType: {
instance.type_ = field.asString();
break;
}
case fieldIdId: {
instance.id = field.asString();
break;
}
}
}
return instance;
}