|
@@ -2,6 +2,7 @@ import "package:flutter/foundation.dart";
|
|
|
|
|
|
enum EntityType {
|
|
|
location,
|
|
|
+ person,
|
|
|
unknown,
|
|
|
}
|
|
|
|
|
@@ -9,6 +10,8 @@ EntityType typeFromString(String type) {
|
|
|
switch (type) {
|
|
|
case "location":
|
|
|
return EntityType.location;
|
|
|
+ case "person":
|
|
|
+ return EntityType.location;
|
|
|
}
|
|
|
debugPrint("unexpected collection type $type");
|
|
|
return EntityType.unknown;
|
|
@@ -19,6 +22,8 @@ extension EntityTypeExtn on EntityType {
|
|
|
switch (this) {
|
|
|
case EntityType.location:
|
|
|
return "location";
|
|
|
+ case EntityType.person:
|
|
|
+ return "person";
|
|
|
case EntityType.unknown:
|
|
|
return "unknown";
|
|
|
}
|