decode static method

UserContext decode(
  1. Object result
)

Implementation

static UserContext decode(Object result) {
  result as List<Object?>;
  return UserContext(
    lastKnownLocation: result[0] != null
        ? GeoLocation.decode(result[0]! as List<Object?>)
        : null,
    home: result[1] != null
        ? Venue.decode(result[1]! as List<Object?>)
        : null,
    work: result[2] != null
        ? Venue.decode(result[2]! as List<Object?>)
        : null,
    semanticTime: result[3] != null
        ? SemanticTime.values[result[3]! as int]
        : null,
    activeSegments: (result[4] as List<Object?>?)!.cast<Segment?>(),
  );
}