FieldRef.fromString constructor
FieldRef.fromString(
- String s
Implementation
factory FieldRef.fromString(String s) {
int n = s.indexOf(joiner);
if (n == -1) {
throw Exception("malformed field ref string");
}
String fieldRef = s.substring(0, n), docRef = s.substring(n + 1);
return FieldRef(docRef, fieldRef, s);
}