get<T> method
Implementation
T get<T>(String field) {
final v = read(field);
if (v.isNull) {
return null as T;
} else if (v.isLiteral) {
return v.literalValue as T;
} else if (v.isList) {
return v.listValue as T;
} else if (v.isType) {
return v.typeValue as T;
} else if (v.isSet) {
return v.setValue as T;
} else if (v.isNull) {
return null as T;
} else {
return v.objectValue as T;
}
}