public static DateTime?GetCreateTimeUtc(this IEnumerable <Claim> claims, IDataSerializer dataSerializer) { var json = claims.FirstOrDefault(x => x.Type == claims_create_time_utc_key)?.Value ?? "{}"; var time = dataSerializer.DeserializeFromStringOrDefault <_ <DateTime?> >(json); return(time?.Data); }